Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 May 2022 22:42:58 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: 43fb772c68a2 - main - ahc/ahd: Remove unused devclass arguments to DRIVER_MODULE.
Message-ID:  <202205062242.246MgwNp019080@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=43fb772c68a2eac62e9826495f35aa9c0fd72672

commit 43fb772c68a2eac62e9826495f35aa9c0fd72672
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-19 20:41:23 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-06 22:39:28 +0000

    ahc/ahd: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/aic7xxx/ahc_isa.c     | 2 +-
 sys/dev/aic7xxx/ahc_pci.c     | 2 +-
 sys/dev/aic7xxx/ahd_pci.c     | 4 +---
 sys/dev/aic7xxx/aic7xxx_osm.c | 2 --
 sys/dev/aic7xxx/aic7xxx_osm.h | 3 ---
 5 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/sys/dev/aic7xxx/ahc_isa.c b/sys/dev/aic7xxx/ahc_isa.c
index bcd2e34bf4b7..56466410dc30 100644
--- a/sys/dev/aic7xxx/ahc_isa.c
+++ b/sys/dev/aic7xxx/ahc_isa.c
@@ -297,6 +297,6 @@ static driver_t ahc_isa_driver = {
 	sizeof(struct ahc_softc)
 };
 
-DRIVER_MODULE(ahc_isa, isa, ahc_isa_driver, ahc_devclass, 0, 0);
+DRIVER_MODULE(ahc_isa, isa, ahc_isa_driver, 0, 0);
 MODULE_DEPEND(ahc_isa, ahc, 1, 1, 1);
 MODULE_VERSION(ahc_isa, 1);
diff --git a/sys/dev/aic7xxx/ahc_pci.c b/sys/dev/aic7xxx/ahc_pci.c
index 3ac8a860ba8b..cd1a46e3399e 100644
--- a/sys/dev/aic7xxx/ahc_pci.c
+++ b/sys/dev/aic7xxx/ahc_pci.c
@@ -53,7 +53,7 @@ static driver_t ahc_pci_driver = {
 	sizeof(struct ahc_softc)
 };
 
-DRIVER_MODULE(ahc_pci, pci, ahc_pci_driver, ahc_devclass, 0, 0);
+DRIVER_MODULE(ahc_pci, pci, ahc_pci_driver, 0, 0);
 MODULE_DEPEND(ahc_pci, ahc, 1, 1, 1);
 MODULE_VERSION(ahc_pci, 1);
 
diff --git a/sys/dev/aic7xxx/ahd_pci.c b/sys/dev/aic7xxx/ahd_pci.c
index 11093e91a459..ff090d147894 100644
--- a/sys/dev/aic7xxx/ahd_pci.c
+++ b/sys/dev/aic7xxx/ahd_pci.c
@@ -53,9 +53,7 @@ static driver_t ahd_pci_driver = {
 	sizeof(struct ahd_softc)
 };
 
-static devclass_t ahd_devclass;
-
-DRIVER_MODULE(ahd, pci, ahd_pci_driver, ahd_devclass, 0, 0);
+DRIVER_MODULE(ahd, pci, ahd_pci_driver, 0, 0);
 MODULE_DEPEND(ahd_pci, ahd, 1, 1, 1);
 MODULE_VERSION(ahd_pci, 1);
 
diff --git a/sys/dev/aic7xxx/aic7xxx_osm.c b/sys/dev/aic7xxx/aic7xxx_osm.c
index de679ec210a1..73a7c14111c0 100644
--- a/sys/dev/aic7xxx/aic7xxx_osm.c
+++ b/sys/dev/aic7xxx/aic7xxx_osm.c
@@ -47,8 +47,6 @@ __FBSDID("$FreeBSD$");
 
 #define ccb_scb_ptr spriv_ptr0
 
-devclass_t ahc_devclass;
-
 #if 0
 static void	ahc_dump_targcmd(struct target_cmd *cmd);
 #endif
diff --git a/sys/dev/aic7xxx/aic7xxx_osm.h b/sys/dev/aic7xxx/aic7xxx_osm.h
index 820ecb563b6b..16e2a30794d0 100644
--- a/sys/dev/aic7xxx/aic7xxx_osm.h
+++ b/sys/dev/aic7xxx/aic7xxx_osm.h
@@ -68,9 +68,6 @@
 #include <cam/scsi/scsi_all.h>
 #include <cam/scsi/scsi_message.h>
 
-/*************************** Attachment Bookkeeping ***************************/
-extern devclass_t ahc_devclass;
-
 /****************************** Platform Macros *******************************/
 #define	SIM_IS_SCSIBUS_B(ahc, sim)	\
 	((sim) == ahc->platform_data->sim_b)



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