git: 606e29ec4149 - main - Remove unused ata_pci_devclass.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 06 May 2022 22:43:02 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=606e29ec41490c35d2275f7a660664da293c1ccd

commit 606e29ec41490c35d2275f7a660664da293c1ccd
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-19 20:58:27 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-06 22:39:29 +0000

    Remove unused ata_pci_devclass.
---
 sys/dev/ata/ata-pci.c          | 4 +---
 sys/dev/ata/ata-pci.h          | 4 +---
 sys/dev/ata/chipsets/ata-fsl.c | 3 +--
 3 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c
index 86072519c1e5..41e2dcabf749 100644
--- a/sys/dev/ata/ata-pci.c
+++ b/sys/dev/ata/ata-pci.c
@@ -601,15 +601,13 @@ static device_method_t ata_pci_methods[] = {
     DEVMETHOD_END
 };
 
-devclass_t ata_pci_devclass;
-
 static driver_t ata_pci_driver = {
     "atapci",
     ata_pci_methods,
     sizeof(struct ata_pci_controller),
 };
 
-DRIVER_MODULE(atapci, pci, ata_pci_driver, ata_pci_devclass, NULL, NULL);
+DRIVER_MODULE(atapci, pci, ata_pci_driver, NULL, NULL);
 MODULE_VERSION(atapci, 1);
 MODULE_DEPEND(atapci, ata, 1, 1, 1);
 
diff --git a/sys/dev/ata/ata-pci.h b/sys/dev/ata/ata-pci.h
index ab0e661de29f..0c29f53b1600 100644
--- a/sys/dev/ata/ata-pci.h
+++ b/sys/dev/ata/ata-pci.h
@@ -561,8 +561,6 @@ int ata_mode2idx(int mode);
 int ata_sii_chipinit(device_t);
 
 /* externs */
-extern devclass_t ata_pci_devclass;
-
 MALLOC_DECLARE(M_ATAPCI);
 
 /* macro for easy definition of all driver module stuff */
@@ -593,7 +591,7 @@ static driver_t __CONCAT(dname,_driver) = { \
         __CONCAT(dname,_methods), \
         sizeof(struct ata_pci_controller) \
 }; \
-DRIVER_MODULE(dname, pci, __CONCAT(dname,_driver), ata_pci_devclass, NULL, NULL); \
+DRIVER_MODULE(dname, pci, __CONCAT(dname,_driver), NULL, NULL); \
 MODULE_VERSION(dname, 1); \
 MODULE_DEPEND(dname, ata, 1, 1, 1); \
 MODULE_DEPEND(dname, atapci, 1, 1, 1);
diff --git a/sys/dev/ata/chipsets/ata-fsl.c b/sys/dev/ata/chipsets/ata-fsl.c
index 4239ca6844a7..e29fa021520d 100644
--- a/sys/dev/ata/chipsets/ata-fsl.c
+++ b/sys/dev/ata/chipsets/ata-fsl.c
@@ -230,8 +230,7 @@ static driver_t imx_ata_driver = {
         imx_ata_methods,
         sizeof(struct ata_pci_controller)
 };
-DRIVER_MODULE(imx_ata, simplebus, imx_ata_driver, ata_pci_devclass, NULL,
-    NULL);
+DRIVER_MODULE(imx_ata, simplebus, imx_ata_driver, NULL, NULL);
 MODULE_VERSION(imx_ata, 1);
 MODULE_DEPEND(imx_ata, ata, 1, 1, 1);
 MODULE_DEPEND(imx_ata, atapci, 1, 1, 1);