git: dd87008a28fe - main - sk: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 23:24:50 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=dd87008a28fe5685f9458363c85b739fbcab9cb5 commit dd87008a28fe5685f9458363c85b739fbcab9cb5 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-06 22:46:56 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:46:56 +0000 sk: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/sk/if_sk.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index 5480dd86c4cc..139234658b29 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -304,8 +304,6 @@ static driver_t skc_driver = { sizeof(struct sk_softc) }; -static devclass_t skc_devclass; - static device_method_t sk_methods[] = { /* Device interface */ DEVMETHOD(device_probe, sk_probe), @@ -327,10 +325,8 @@ static driver_t sk_driver = { sizeof(struct sk_if_softc) }; -static devclass_t sk_devclass; - -DRIVER_MODULE(skc, pci, skc_driver, skc_devclass, NULL, NULL); -DRIVER_MODULE(sk, skc, sk_driver, sk_devclass, NULL, NULL); +DRIVER_MODULE(skc, pci, skc_driver, NULL, NULL); +DRIVER_MODULE(sk, skc, sk_driver, NULL, NULL); DRIVER_MODULE(miibus, sk, miibus_driver, NULL, NULL); static struct resource_spec sk_res_spec_io[] = {