git: 1bbc46a868a7 - main - rtwn: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 19:23:25 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1bbc46a868a70f0b0dd548bf1015068b87b30f14 commit 1bbc46a868a70f0b0dd548bf1015068b87b30f14 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 19:22:04 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 19:22:04 +0000 rtwn: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/rtwn/pci/rtwn_pci_attach.c | 4 +--- sys/dev/rtwn/usb/rtwn_usb_attach.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/dev/rtwn/pci/rtwn_pci_attach.c b/sys/dev/rtwn/pci/rtwn_pci_attach.c index efa6bc01501e..65c2313fed6f 100644 --- a/sys/dev/rtwn/pci/rtwn_pci_attach.c +++ b/sys/dev/rtwn/pci/rtwn_pci_attach.c @@ -783,9 +783,7 @@ static driver_t rtwn_pci_driver = { sizeof(struct rtwn_pci_softc) }; -static devclass_t rtwn_pci_devclass; - -DRIVER_MODULE(rtwn_pci, pci, rtwn_pci_driver, rtwn_pci_devclass, NULL, NULL); +DRIVER_MODULE(rtwn_pci, pci, rtwn_pci_driver, NULL, NULL); MODULE_VERSION(rtwn_pci, 1); MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, rtwn, rtwn_pci_ident_table, nitems(rtwn_pci_ident_table)); diff --git a/sys/dev/rtwn/usb/rtwn_usb_attach.c b/sys/dev/rtwn/usb/rtwn_usb_attach.c index cb775bae3188..4e881b2d0de5 100644 --- a/sys/dev/rtwn/usb/rtwn_usb_attach.c +++ b/sys/dev/rtwn/usb/rtwn_usb_attach.c @@ -480,9 +480,7 @@ static driver_t rtwn_usb_driver = { sizeof(struct rtwn_usb_softc) }; -static devclass_t rtwn_usb_devclass; - -DRIVER_MODULE(rtwn_usb, uhub, rtwn_usb_driver, rtwn_usb_devclass, NULL, NULL); +DRIVER_MODULE(rtwn_usb, uhub, rtwn_usb_driver, NULL, NULL); MODULE_VERSION(rtwn_usb, 1); MODULE_DEPEND(rtwn_usb, usb, 1, 1, 1); MODULE_DEPEND(rtwn_usb, wlan, 1, 1, 1);