git: 387290793122 - main - cas: Remove unused devclass argument to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 22:43:09 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=38729079312270532f223752675950e5527c6017 commit 38729079312270532f223752675950e5527c6017 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-19 21:03:52 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:39:29 +0000 cas: Remove unused devclass argument to DRIVER_MODULE. --- sys/dev/cas/if_cas.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/cas/if_cas.c b/sys/dev/cas/if_cas.c index fa2a51eb377b..b6792cbe097e 100644 --- a/sys/dev/cas/if_cas.c +++ b/sys/dev/cas/if_cas.c @@ -172,8 +172,6 @@ static void cas_tx_task(void *arg, int pending __unused); static inline void cas_txkick(struct cas_softc *sc); static void cas_watchdog(struct cas_softc *sc); -static devclass_t cas_devclass; - MODULE_DEPEND(cas, ether, 1, 1, 1); MODULE_DEPEND(cas, miibus, 1, 1, 1); @@ -2612,7 +2610,7 @@ static const struct cas_pci_dev { { 0, 0, 0, NULL } }; -DRIVER_MODULE(cas, pci, cas_pci_driver, cas_devclass, 0, 0); +DRIVER_MODULE(cas, pci, cas_pci_driver, 0, 0); MODULE_PNP_INFO("W32:vendor/device", pci, cas, cas_pci_devlist, nitems(cas_pci_devlist) - 1); DRIVER_MODULE(miibus, cas, miibus_driver, 0, 0);