Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2022 17:36:16 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 76979b6275b2 - main - scc: Remove unused devclass arguments to DRIVER_MODULE.
Message-ID:  <202205101736.24AHaG1c098877@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=76979b6275b25d1ba4b42a66ae1597fd924e52d9

commit 76979b6275b25d1ba4b42a66ae1597fd924e52d9
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-10 17:21:38 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-10 17:21:38 +0000

    scc: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/scc/scc_bfe.h       | 1 -
 sys/dev/scc/scc_bfe_macio.c | 2 +-
 sys/dev/scc/scc_bfe_quicc.c | 2 +-
 sys/dev/scc/scc_core.c      | 1 -
 4 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/sys/dev/scc/scc_bfe.h b/sys/dev/scc/scc_bfe.h
index 1ccd176e5539..507a403bfe50 100644
--- a/sys/dev/scc/scc_bfe.h
+++ b/sys/dev/scc/scc_bfe.h
@@ -137,7 +137,6 @@ struct scc_softc {
 	uint32_t        sc_hwsig;       /* Signal state. Used by HW driver. */
 };
 
-extern devclass_t scc_devclass;
 extern const char scc_driver_name[];
 
 int scc_bfe_attach(device_t dev, u_int ipc);
diff --git a/sys/dev/scc/scc_bfe_macio.c b/sys/dev/scc/scc_bfe_macio.c
index 241f6c072a2c..70c6936af066 100644
--- a/sys/dev/scc/scc_bfe_macio.c
+++ b/sys/dev/scc/scc_bfe_macio.c
@@ -93,4 +93,4 @@ static driver_t scc_macio_driver = {
 	sizeof(struct scc_softc),
 };
 
-DRIVER_MODULE(scc, macio, scc_macio_driver, scc_devclass, NULL, NULL);
+DRIVER_MODULE(scc, macio, scc_macio_driver, NULL, NULL);
diff --git a/sys/dev/scc/scc_bfe_quicc.c b/sys/dev/scc/scc_bfe_quicc.c
index 6f047b75a4ee..5601c05a7a6d 100644
--- a/sys/dev/scc/scc_bfe_quicc.c
+++ b/sys/dev/scc/scc_bfe_quicc.c
@@ -98,4 +98,4 @@ static driver_t scc_quicc_driver = {
 	sizeof(struct scc_softc),
 };
 
-DRIVER_MODULE(scc, quicc, scc_quicc_driver, scc_devclass, NULL, NULL);
+DRIVER_MODULE(scc, quicc, scc_quicc_driver, NULL, NULL);
diff --git a/sys/dev/scc/scc_core.c b/sys/dev/scc/scc_core.c
index b5a8fe4fda19..8974d92fe581 100644
--- a/sys/dev/scc/scc_core.c
+++ b/sys/dev/scc/scc_core.c
@@ -49,7 +49,6 @@ __FBSDID("$FreeBSD$");
 
 #include "scc_if.h"
 
-devclass_t scc_devclass;
 const char scc_driver_name[] = "scc";
 
 static MALLOC_DEFINE(M_SCC, "SCC", "SCC driver");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205101736.24AHaG1c098877>