From f859852f252922a45ae44348e87085f0e07ac8e2 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 19 Apr 2022 14:00:49 -0700 Subject: ath: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/ath/if_ath_ahb.c | 7 ++++--- 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 */ -- cgit v1.2.3