aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/wlan
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-05-06 22:46:57 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-05-06 22:46:57 +0000
commitbc9372d784c2bd4874f221bf7cd8072cb157dc71 (patch)
tree8510d50e43c23f6a5b83cc2a5cf88742bae6cfe8 /sys/dev/usb/wlan
parent7eeede158604048dd21c5817bf9d9ee4721a9129 (diff)
usb: Remove unused devclass arguments to DRIVER_MODULE.
Diffstat (limited to 'sys/dev/usb/wlan')
-rw-r--r--sys/dev/usb/wlan/if_rsu.c4
-rw-r--r--sys/dev/usb/wlan/if_rum.c4
-rw-r--r--sys/dev/usb/wlan/if_run.c4
-rw-r--r--sys/dev/usb/wlan/if_uath.c4
-rw-r--r--sys/dev/usb/wlan/if_upgt.c4
-rw-r--r--sys/dev/usb/wlan/if_ural.c4
-rw-r--r--sys/dev/usb/wlan/if_urtw.c4
-rw-r--r--sys/dev/usb/wlan/if_zyd.c4
8 files changed, 10 insertions, 22 deletions
diff --git a/sys/dev/usb/wlan/if_rsu.c b/sys/dev/usb/wlan/if_rsu.c
index 747e3532cde4..6913a496301a 100644
--- a/sys/dev/usb/wlan/if_rsu.c
+++ b/sys/dev/usb/wlan/if_rsu.c
@@ -274,9 +274,7 @@ static driver_t rsu_driver = {
.size = sizeof(struct rsu_softc)
};
-static devclass_t rsu_devclass;
-
-DRIVER_MODULE(rsu, uhub, rsu_driver, rsu_devclass, NULL, 0);
+DRIVER_MODULE(rsu, uhub, rsu_driver, NULL, NULL);
MODULE_DEPEND(rsu, wlan, 1, 1, 1);
MODULE_DEPEND(rsu, usb, 1, 1, 1);
MODULE_DEPEND(rsu, firmware, 1, 1, 1);
diff --git a/sys/dev/usb/wlan/if_rum.c b/sys/dev/usb/wlan/if_rum.c
index 4d97dfb3ec8e..93d5abe6abfb 100644
--- a/sys/dev/usb/wlan/if_rum.c
+++ b/sys/dev/usb/wlan/if_rum.c
@@ -3294,9 +3294,7 @@ static driver_t rum_driver = {
.size = sizeof(struct rum_softc),
};
-static devclass_t rum_devclass;
-
-DRIVER_MODULE(rum, uhub, rum_driver, rum_devclass, NULL, 0);
+DRIVER_MODULE(rum, uhub, rum_driver, NULL, NULL);
MODULE_DEPEND(rum, wlan, 1, 1, 1);
MODULE_DEPEND(rum, usb, 1, 1, 1);
MODULE_VERSION(rum, 1);
diff --git a/sys/dev/usb/wlan/if_run.c b/sys/dev/usb/wlan/if_run.c
index 52933a4812dc..07c62ac72f18 100644
--- a/sys/dev/usb/wlan/if_run.c
+++ b/sys/dev/usb/wlan/if_run.c
@@ -6437,9 +6437,7 @@ static driver_t run_driver = {
.size = sizeof(struct run_softc)
};
-static devclass_t run_devclass;
-
-DRIVER_MODULE(run, uhub, run_driver, run_devclass, run_driver_loaded, NULL);
+DRIVER_MODULE(run, uhub, run_driver, run_driver_loaded, NULL);
MODULE_DEPEND(run, wlan, 1, 1, 1);
MODULE_DEPEND(run, usb, 1, 1, 1);
MODULE_DEPEND(run, firmware, 1, 1, 1);
diff --git a/sys/dev/usb/wlan/if_uath.c b/sys/dev/usb/wlan/if_uath.c
index 4ffdc9a72fad..da55dffa6781 100644
--- a/sys/dev/usb/wlan/if_uath.c
+++ b/sys/dev/usb/wlan/if_uath.c
@@ -2864,14 +2864,14 @@ static device_method_t uath_methods[] = {
DEVMETHOD(device_detach, uath_detach),
DEVMETHOD_END
};
+
static driver_t uath_driver = {
.name = "uath",
.methods = uath_methods,
.size = sizeof(struct uath_softc)
};
-static devclass_t uath_devclass;
-DRIVER_MODULE(uath, uhub, uath_driver, uath_devclass, NULL, 0);
+DRIVER_MODULE(uath, uhub, uath_driver, NULL, NULL);
MODULE_DEPEND(uath, wlan, 1, 1, 1);
MODULE_DEPEND(uath, usb, 1, 1, 1);
MODULE_VERSION(uath, 1);
diff --git a/sys/dev/usb/wlan/if_upgt.c b/sys/dev/usb/wlan/if_upgt.c
index 475f23d4537f..4adbea4fbaaf 100644
--- a/sys/dev/usb/wlan/if_upgt.c
+++ b/sys/dev/usb/wlan/if_upgt.c
@@ -2340,9 +2340,7 @@ static driver_t upgt_driver = {
.size = sizeof(struct upgt_softc)
};
-static devclass_t upgt_devclass;
-
-DRIVER_MODULE(if_upgt, uhub, upgt_driver, upgt_devclass, NULL, 0);
+DRIVER_MODULE(if_upgt, uhub, upgt_driver, NULL, NULL);
MODULE_VERSION(if_upgt, 1);
MODULE_DEPEND(if_upgt, usb, 1, 1, 1);
MODULE_DEPEND(if_upgt, wlan, 1, 1, 1);
diff --git a/sys/dev/usb/wlan/if_ural.c b/sys/dev/usb/wlan/if_ural.c
index 4a2ed51928a7..25048b9823cf 100644
--- a/sys/dev/usb/wlan/if_ural.c
+++ b/sys/dev/usb/wlan/if_ural.c
@@ -401,9 +401,7 @@ static driver_t ural_driver = {
.size = sizeof(struct ural_softc),
};
-static devclass_t ural_devclass;
-
-DRIVER_MODULE(ural, uhub, ural_driver, ural_devclass, NULL, 0);
+DRIVER_MODULE(ural, uhub, ural_driver, NULL, NULL);
MODULE_DEPEND(ural, usb, 1, 1, 1);
MODULE_DEPEND(ural, wlan, 1, 1, 1);
MODULE_VERSION(ural, 1);
diff --git a/sys/dev/usb/wlan/if_urtw.c b/sys/dev/usb/wlan/if_urtw.c
index 164436daa21b..2ade18480b6f 100644
--- a/sys/dev/usb/wlan/if_urtw.c
+++ b/sys/dev/usb/wlan/if_urtw.c
@@ -4419,14 +4419,14 @@ static device_method_t urtw_methods[] = {
DEVMETHOD(device_detach, urtw_detach),
DEVMETHOD_END
};
+
static driver_t urtw_driver = {
.name = "urtw",
.methods = urtw_methods,
.size = sizeof(struct urtw_softc)
};
-static devclass_t urtw_devclass;
-DRIVER_MODULE(urtw, uhub, urtw_driver, urtw_devclass, NULL, 0);
+DRIVER_MODULE(urtw, uhub, urtw_driver, NULL, NULL);
MODULE_DEPEND(urtw, wlan, 1, 1, 1);
MODULE_DEPEND(urtw, usb, 1, 1, 1);
MODULE_VERSION(urtw, 1);
diff --git a/sys/dev/usb/wlan/if_zyd.c b/sys/dev/usb/wlan/if_zyd.c
index 8a6e41bcd27f..2a02e7fae5ee 100644
--- a/sys/dev/usb/wlan/if_zyd.c
+++ b/sys/dev/usb/wlan/if_zyd.c
@@ -2913,9 +2913,7 @@ static driver_t zyd_driver = {
.size = sizeof(struct zyd_softc)
};
-static devclass_t zyd_devclass;
-
-DRIVER_MODULE(zyd, uhub, zyd_driver, zyd_devclass, NULL, 0);
+DRIVER_MODULE(zyd, uhub, zyd_driver, NULL, NULL);
MODULE_DEPEND(zyd, usb, 1, 1, 1);
MODULE_DEPEND(zyd, wlan, 1, 1, 1);
MODULE_VERSION(zyd, 1);