diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2022-05-09 19:22:00 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2022-05-09 19:22:00 +0000 |
| commit | b338e3ea3c5ee9da02881789c6f83daf8d571a78 (patch) | |
| tree | a77302d3b437eb95fc265cccbc8a4cdefd3e6628 /sys/dev/bwn | |
| parent | 64d3221c61122b9a6a73f107c8145e92b47eb4c8 (diff) | |
Diffstat (limited to 'sys/dev/bwn')
| -rw-r--r-- | sys/dev/bwn/if_bwn.c | 5 | ||||
| -rw-r--r-- | sys/dev/bwn/if_bwn_pci.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/bwn/if_bwn.c b/sys/dev/bwn/if_bwn.c index 1dc38dbcae6c..b911ac137d82 100644 --- a/sys/dev/bwn/if_bwn.c +++ b/sys/dev/bwn/if_bwn.c @@ -7738,13 +7738,14 @@ static device_method_t bwn_methods[] = { DEVMETHOD(device_resume, bwn_resume), DEVMETHOD_END }; + static driver_t bwn_driver = { "bwn", bwn_methods, sizeof(struct bwn_softc) }; -static devclass_t bwn_devclass; -DRIVER_MODULE(bwn, bhnd, bwn_driver, bwn_devclass, 0, 0); + +DRIVER_MODULE(bwn, bhnd, bwn_driver, 0, 0); MODULE_DEPEND(bwn, bhnd, 1, 1, 1); MODULE_DEPEND(bwn, gpiobus, 1, 1, 1); MODULE_DEPEND(bwn, wlan, 1, 1, 1); /* 802.11 media layer */ diff --git a/sys/dev/bwn/if_bwn_pci.c b/sys/dev/bwn/if_bwn_pci.c index 63f3f78a18f1..09e3c95fd87b 100644 --- a/sys/dev/bwn/if_bwn_pci.c +++ b/sys/dev/bwn/if_bwn_pci.c @@ -287,12 +287,9 @@ static device_method_t bwn_pci_methods[] = { DEVMETHOD_END }; -static devclass_t bwn_pci_devclass; - DEFINE_CLASS_0(bwn_pci, bwn_pci_driver, bwn_pci_methods, sizeof(struct bwn_pci_softc)); -DRIVER_MODULE_ORDERED(bwn_pci, pci, bwn_pci_driver, bwn_pci_devclass, NULL, - NULL, SI_ORDER_ANY); +DRIVER_MODULE_ORDERED(bwn_pci, pci, bwn_pci_driver, NULL, NULL, SI_ORDER_ANY); MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, bwn_siba, siba_devices, nitems(siba_devices) - 1); MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, bwn_bcma, |
