summaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-19 20:58:27 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-05-06 22:39:29 +0000
commit606e29ec41490c35d2275f7a660664da293c1ccd (patch)
tree090eccfd15487bb1ded18fba4775fd851453d679 /sys/dev/ata
parentcf80fdefcafd1a48a7fef8e580f20f9843bbc3d2 (diff)
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata-pci.c4
-rw-r--r--sys/dev/ata/ata-pci.h4
-rw-r--r--sys/dev/ata/chipsets/ata-fsl.c3
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);