git: 3a3a104edf25 - main - rt: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 May 2022 17:36:48 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3a3a104edf25d94495f7632c602e59d50a8e2178 commit 3a3a104edf25d94495f7632c602e59d50a8e2178 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-10 17:21:39 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-10 17:21:39 +0000 rt: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/rt/if_rt.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/dev/rt/if_rt.c b/sys/dev/rt/if_rt.c index c22618b7a5e1..22f24a9affda 100644 --- a/sys/dev/rt/if_rt.c +++ b/sys/dev/rt/if_rt.c @@ -2858,11 +2858,9 @@ static driver_t rt_driver = sizeof(struct rt_softc) }; -static devclass_t rt_dev_class; - -DRIVER_MODULE(rt, nexus, rt_driver, rt_dev_class, 0, 0); +DRIVER_MODULE(rt, nexus, rt_driver, 0, 0); #ifdef FDT -DRIVER_MODULE(rt, simplebus, rt_driver, rt_dev_class, 0, 0); +DRIVER_MODULE(rt, simplebus, rt_driver, 0, 0); #endif MODULE_DEPEND(rt, ether, 1, 1, 1); @@ -2898,10 +2896,9 @@ static device_method_t rtmdio_methods[] = { DEFINE_CLASS_0(rtmdio, rtmdio_driver, rtmdio_methods, sizeof(struct rt_softc)); -static devclass_t rtmdio_devclass; DRIVER_MODULE(miiproxy, rt, miiproxy_driver, 0, 0); -DRIVER_MODULE(rtmdio, simplebus, rtmdio_driver, rtmdio_devclass, 0, 0); +DRIVER_MODULE(rtmdio, simplebus, rtmdio_driver, 0, 0); DRIVER_MODULE(mdio, rtmdio, mdio_driver, 0, 0); static int