git: 8e995b463185 - main - le: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 22:43:37 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8e995b46318555d577db7dcbb1d6c222dde93050 commit 8e995b46318555d577db7dcbb1d6c222dde93050 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-20 16:46:50 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:39:31 +0000 le: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/le/if_le_isa.c | 2 +- sys/dev/le/if_le_pci.c | 2 +- sys/dev/le/lance.c | 2 -- sys/dev/le/lancevar.h | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/dev/le/if_le_isa.c b/sys/dev/le/if_le_isa.c index 39d5e111bdcc..959b79b98324 100644 --- a/sys/dev/le/if_le_isa.c +++ b/sys/dev/le/if_le_isa.c @@ -494,6 +494,6 @@ le_isa_resume(device_t dev) } DEFINE_CLASS_0(le, le_isa_driver, le_isa_methods, sizeof(struct le_isa_softc)); -DRIVER_MODULE(le, isa, le_isa_driver, le_devclass, 0, 0); +DRIVER_MODULE(le, isa, le_isa_driver, 0, 0); MODULE_DEPEND(le, ether, 1, 1, 1); ISA_PNP_INFO(le_isa_ids); diff --git a/sys/dev/le/if_le_pci.c b/sys/dev/le/if_le_pci.c index 4dd5b2310ca9..2d8df29fdd0e 100644 --- a/sys/dev/le/if_le_pci.c +++ b/sys/dev/le/if_le_pci.c @@ -136,7 +136,7 @@ static device_method_t le_pci_methods[] = { }; DEFINE_CLASS_0(le, le_pci_driver, le_pci_methods, sizeof(struct le_pci_softc)); -DRIVER_MODULE(le, pci, le_pci_driver, le_devclass, 0, 0); +DRIVER_MODULE(le, pci, le_pci_driver, 0, 0); MODULE_DEPEND(le, ether, 1, 1, 1); static const int le_home_supmedia[] = { diff --git a/sys/dev/le/lance.c b/sys/dev/le/lance.c index e4ff97b824e2..65504bd8142a 100644 --- a/sys/dev/le/lance.c +++ b/sys/dev/le/lance.c @@ -94,8 +94,6 @@ __FBSDID("$FreeBSD$"); #include <dev/le/lancereg.h> #include <dev/le/lancevar.h> -devclass_t le_devclass; - static void lance_start(struct ifnet *); static void lance_stop(struct lance_softc *); static void lance_init(void *); diff --git a/sys/dev/le/lancevar.h b/sys/dev/le/lancevar.h index 2fbbabbf1f07..092f78668e0a 100644 --- a/sys/dev/le/lancevar.h +++ b/sys/dev/le/lancevar.h @@ -37,8 +37,6 @@ #ifndef _DEV_LE_LANCEVAR_H_ #define _DEV_LE_LANCEVAR_H_ -extern devclass_t le_devclass; - struct lance_softc { struct ifnet *sc_ifp; struct ifmedia sc_media;