git: 31e2d81e3b99 - main - cgem: Remove unused devclass argument to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 21:47:38 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=31e2d81e3b996466c64d6be2f1c5c43fbdb42c80 commit 31e2d81e3b996466c64d6be2f1c5c43fbdb42c80 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 21:26:44 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 21:26:44 +0000 cgem: Remove unused devclass argument to DRIVER_MODULE. --- sys/dev/cadence/if_cgem.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/cadence/if_cgem.c b/sys/dev/cadence/if_cgem.c index 649045a0dad3..89cde729db3f 100644 --- a/sys/dev/cadence/if_cgem.c +++ b/sys/dev/cadence/if_cgem.c @@ -234,8 +234,6 @@ struct cgem_softc { /* Allow platforms to optionally provide a way to set the reference clock. */ int cgem_set_ref_clk(int unit, int frequency); -static devclass_t cgem_devclass; - static int cgem_probe(device_t dev); static int cgem_attach(device_t dev); static int cgem_detach(device_t dev); @@ -1961,7 +1959,7 @@ static driver_t cgem_driver = { sizeof(struct cgem_softc), }; -DRIVER_MODULE(cgem, simplebus, cgem_driver, cgem_devclass, NULL, NULL); +DRIVER_MODULE(cgem, simplebus, cgem_driver, NULL, NULL); DRIVER_MODULE(miibus, cgem, miibus_driver, NULL, NULL); MODULE_DEPEND(cgem, miibus, 1, 1, 1); MODULE_DEPEND(cgem, ether, 1, 1, 1);