diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-04-19 21:00:49 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-05-06 22:39:29 +0000 |
commit | f859852f252922a45ae44348e87085f0e07ac8e2 (patch) | |
tree | 31e17815fbd83d97a361d25aac52530d6a4b3105 | |
parent | 606e29ec41490c35d2275f7a660664da293c1ccd (diff) | |
download | src-f859852f252922a45ae44348e87085f0e07ac8e2.tar.gz src-f859852f252922a45ae44348e87085f0e07ac8e2.zip |
ath: Remove unused devclass arguments to DRIVER_MODULE.
-rw-r--r-- | sys/dev/ath/if_ath_ahb.c | 7 | ||||
-rw-r--r-- | sys/dev/ath/if_ath_pci.c | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/ath/if_ath_ahb.c b/sys/dev/ath/if_ath_ahb.c index ea329589f1ab..61041551c60d 100644 --- a/sys/dev/ath/if_ath_ahb.c +++ b/sys/dev/ath/if_ath_ahb.c @@ -338,14 +338,15 @@ static device_method_t ath_ahb_methods[] = { DEVMETHOD(device_resume, ath_ahb_resume), { 0,0 } }; + static driver_t ath_ahb_driver = { "ath", ath_ahb_methods, sizeof (struct ath_ahb_softc) }; -static devclass_t ath_devclass; -DRIVER_MODULE(if_ath_ahb, nexus, ath_ahb_driver, ath_devclass, 0, 0); -DRIVER_MODULE(if_ath_ahb, apb, ath_ahb_driver, ath_devclass, 0, 0); + +DRIVER_MODULE(if_ath_ahb, nexus, ath_ahb_driver, 0, 0); +DRIVER_MODULE(if_ath_ahb, apb, ath_ahb_driver, 0, 0); MODULE_VERSION(if_ath_ahb, 1); MODULE_DEPEND(if_ath_ahb, wlan, 1, 1, 1); /* 802.11 media layer */ MODULE_DEPEND(if_ath_ahb, ath_main, 1, 1, 1); /* if_ath driver */ diff --git a/sys/dev/ath/if_ath_pci.c b/sys/dev/ath/if_ath_pci.c index d3b130e091dc..4ec9829ad3df 100644 --- a/sys/dev/ath/if_ath_pci.c +++ b/sys/dev/ath/if_ath_pci.c @@ -385,13 +385,14 @@ static device_method_t ath_pci_methods[] = { DEVMETHOD(device_resume, ath_pci_resume), { 0,0 } }; + static driver_t ath_pci_driver = { "ath", ath_pci_methods, sizeof (struct ath_pci_softc) }; -static devclass_t ath_devclass; -DRIVER_MODULE(if_ath_pci, pci, ath_pci_driver, ath_devclass, 0, 0); + +DRIVER_MODULE(if_ath_pci, pci, ath_pci_driver, 0, 0); MODULE_VERSION(if_ath_pci, 1); MODULE_DEPEND(if_ath_pci, wlan, 1, 1, 1); /* 802.11 media layer */ MODULE_DEPEND(if_ath_pci, ath_main, 1, 1, 1); /* if_ath driver */ |