git: c1cef544f7a8 - main - hyperv: Remove unused devclass arguments to DRIVER_MODULE.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 06 May 2022 23:25:24 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=c1cef544f7a8915578dd246b7bb709f9f949a29e

commit c1cef544f7a8915578dd246b7bb709f9f949a29e
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-06 22:46:58 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-06 22:46:58 +0000

    hyperv: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/hyperv/hvsock/hv_sock.c                 | 4 +---
 sys/dev/hyperv/input/hv_kbdc.c                  | 4 +---
 sys/dev/hyperv/netvsc/if_hn.c                   | 4 +---
 sys/dev/hyperv/pcib/vmbus_pcib.c                | 4 +---
 sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c | 3 +--
 sys/dev/hyperv/utilities/hv_kvp.c               | 4 +---
 sys/dev/hyperv/utilities/hv_snapshot.c          | 4 +---
 sys/dev/hyperv/utilities/vmbus_heartbeat.c      | 5 +----
 sys/dev/hyperv/utilities/vmbus_shutdown.c       | 5 +----
 sys/dev/hyperv/utilities/vmbus_timesync.c       | 5 +----
 sys/dev/hyperv/vmbus/vmbus.c                    | 7 ++-----
 sys/dev/hyperv/vmbus/vmbus_et.c                 | 4 +---
 sys/dev/hyperv/vmbus/vmbus_res.c                | 5 +----
 13 files changed, 14 insertions(+), 44 deletions(-)

diff --git a/sys/dev/hyperv/hvsock/hv_sock.c b/sys/dev/hyperv/hvsock/hv_sock.c
index 4bd98d154cbf..f0238c233181 100644
--- a/sys/dev/hyperv/hvsock/hv_sock.c
+++ b/sys/dev/hyperv/hvsock/hv_sock.c
@@ -1753,8 +1753,6 @@ static driver_t hvsock_driver = {
 	sizeof(struct hvsock_sc)
 };
 
-static devclass_t hvsock_devclass;
-
-DRIVER_MODULE(hvsock, vmbus, hvsock_driver, hvsock_devclass, NULL, NULL);
+DRIVER_MODULE(hvsock, vmbus, hvsock_driver, NULL, NULL);
 MODULE_VERSION(hvsock, 1);
 MODULE_DEPEND(hvsock, vmbus, 1, 1, 1);
diff --git a/sys/dev/hyperv/input/hv_kbdc.c b/sys/dev/hyperv/input/hv_kbdc.c
index 7065ff3057a7..8801950bd798 100644
--- a/sys/dev/hyperv/input/hv_kbdc.c
+++ b/sys/dev/hyperv/input/hv_kbdc.c
@@ -523,8 +523,6 @@ static device_method_t kbd_methods[] = {
 
 static driver_t kbd_driver = {HVKBD_DRIVER_NAME , kbd_methods, sizeof(hv_kbd_sc)};
 
-static devclass_t kbd_devclass;
-
-DRIVER_MODULE(hv_kbd, vmbus, kbd_driver, kbd_devclass, hvkbd_driver_load, NULL);
+DRIVER_MODULE(hv_kbd, vmbus, kbd_driver, hvkbd_driver_load, NULL);
 MODULE_VERSION(hv_kbd, 1);
 MODULE_DEPEND(hv_kbd, vmbus, 1, 1, 1);
diff --git a/sys/dev/hyperv/netvsc/if_hn.c b/sys/dev/hyperv/netvsc/if_hn.c
index 95f62902fe6b..63795261b21c 100644
--- a/sys/dev/hyperv/netvsc/if_hn.c
+++ b/sys/dev/hyperv/netvsc/if_hn.c
@@ -661,9 +661,7 @@ static driver_t hn_driver = {
 	sizeof(struct hn_softc)
 };
 
-static devclass_t hn_devclass;
-
-DRIVER_MODULE(hn, vmbus, hn_driver, hn_devclass, 0, 0);
+DRIVER_MODULE(hn, vmbus, hn_driver, 0, 0);
 MODULE_VERSION(hn, 1);
 MODULE_DEPEND(hn, vmbus, 1, 1, 1);
 
diff --git a/sys/dev/hyperv/pcib/vmbus_pcib.c b/sys/dev/hyperv/pcib/vmbus_pcib.c
index 81b05a6da055..98e1320e4379 100644
--- a/sys/dev/hyperv/pcib/vmbus_pcib.c
+++ b/sys/dev/hyperv/pcib/vmbus_pcib.c
@@ -1890,11 +1890,9 @@ static device_method_t vmbus_pcib_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t pcib_devclass;
-
 DEFINE_CLASS_0(pcib, vmbus_pcib_driver, vmbus_pcib_methods,
 		sizeof(struct vmbus_pcib_softc));
-DRIVER_MODULE(vmbus_pcib, vmbus, vmbus_pcib_driver, pcib_devclass, 0, 0);
+DRIVER_MODULE(vmbus_pcib, vmbus, vmbus_pcib_driver, 0, 0);
 MODULE_DEPEND(vmbus_pcib, vmbus, 1, 1, 1);
 MODULE_DEPEND(vmbus_pcib, pci, 1, 1, 1);
 
diff --git a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
index 33d88db83ac0..5a8f992ce367 100644
--- a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
+++ b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
@@ -371,8 +371,7 @@ static driver_t storvsc_driver = {
 	"storvsc", storvsc_methods, sizeof(struct storvsc_softc),
 };
 
-static devclass_t storvsc_devclass;
-DRIVER_MODULE(storvsc, vmbus, storvsc_driver, storvsc_devclass, 0, 0);
+DRIVER_MODULE(storvsc, vmbus, storvsc_driver, 0, 0);
 MODULE_VERSION(storvsc, 1);
 MODULE_DEPEND(storvsc, vmbus, 1, 1, 1);
 
diff --git a/sys/dev/hyperv/utilities/hv_kvp.c b/sys/dev/hyperv/utilities/hv_kvp.c
index 8da0936f6cd7..bb73fa480f94 100644
--- a/sys/dev/hyperv/utilities/hv_kvp.c
+++ b/sys/dev/hyperv/utilities/hv_kvp.c
@@ -913,8 +913,6 @@ static device_method_t kvp_methods[] = {
 
 static driver_t kvp_driver = { "hvkvp", kvp_methods, sizeof(hv_kvp_sc)};
 
-static devclass_t kvp_devclass;
-
-DRIVER_MODULE(hv_kvp, vmbus, kvp_driver, kvp_devclass, NULL, NULL);
+DRIVER_MODULE(hv_kvp, vmbus, kvp_driver, NULL, NULL);
 MODULE_VERSION(hv_kvp, 1);
 MODULE_DEPEND(hv_kvp, vmbus, 1, 1, 1);
diff --git a/sys/dev/hyperv/utilities/hv_snapshot.c b/sys/dev/hyperv/utilities/hv_snapshot.c
index d3084c9eca69..174c43260326 100644
--- a/sys/dev/hyperv/utilities/hv_snapshot.c
+++ b/sys/dev/hyperv/utilities/hv_snapshot.c
@@ -1054,8 +1054,6 @@ static device_method_t vss_methods[] = {
 
 static driver_t vss_driver = { "hvvss", vss_methods, sizeof(hv_vss_sc)};
 
-static devclass_t vss_devclass;
-
-DRIVER_MODULE(hv_vss, vmbus, vss_driver, vss_devclass, NULL, NULL);
+DRIVER_MODULE(hv_vss, vmbus, vss_driver, NULL, NULL);
 MODULE_VERSION(hv_vss, 1);
 MODULE_DEPEND(hv_vss, vmbus, 1, 1, 1);
diff --git a/sys/dev/hyperv/utilities/vmbus_heartbeat.c b/sys/dev/hyperv/utilities/vmbus_heartbeat.c
index f15b94822aa9..9eb7eb60cd8f 100644
--- a/sys/dev/hyperv/utilities/vmbus_heartbeat.c
+++ b/sys/dev/hyperv/utilities/vmbus_heartbeat.c
@@ -73,10 +73,7 @@ static driver_t vmbus_heartbeat_driver = {
 	sizeof(struct vmbus_ic_softc)
 };
 
-static devclass_t vmbus_heartbeat_devclass;
-
-DRIVER_MODULE(hv_heartbeat, vmbus, vmbus_heartbeat_driver,
-    vmbus_heartbeat_devclass, NULL, NULL);
+DRIVER_MODULE(hv_heartbeat, vmbus, vmbus_heartbeat_driver, NULL, NULL);
 MODULE_VERSION(hv_heartbeat, 1);
 MODULE_DEPEND(hv_heartbeat, vmbus, 1, 1, 1);
 
diff --git a/sys/dev/hyperv/utilities/vmbus_shutdown.c b/sys/dev/hyperv/utilities/vmbus_shutdown.c
index 7e54dc9866bb..89e81ccc6547 100644
--- a/sys/dev/hyperv/utilities/vmbus_shutdown.c
+++ b/sys/dev/hyperv/utilities/vmbus_shutdown.c
@@ -74,10 +74,7 @@ static driver_t vmbus_shutdown_driver = {
 	sizeof(struct vmbus_ic_softc)
 };
 
-static devclass_t vmbus_shutdown_devclass;
-
-DRIVER_MODULE(hv_shutdown, vmbus, vmbus_shutdown_driver,
-    vmbus_shutdown_devclass, NULL, NULL);
+DRIVER_MODULE(hv_shutdown, vmbus, vmbus_shutdown_driver, NULL, NULL);
 MODULE_VERSION(hv_shutdown, 1);
 MODULE_DEPEND(hv_shutdown, vmbus, 1, 1, 1);
 
diff --git a/sys/dev/hyperv/utilities/vmbus_timesync.c b/sys/dev/hyperv/utilities/vmbus_timesync.c
index 2a8d3a988b43..9861d38c655b 100644
--- a/sys/dev/hyperv/utilities/vmbus_timesync.c
+++ b/sys/dev/hyperv/utilities/vmbus_timesync.c
@@ -81,10 +81,7 @@ static driver_t vmbus_timesync_driver = {
 	sizeof(struct vmbus_ic_softc)
 };
 
-static devclass_t vmbus_timesync_devclass;
-
-DRIVER_MODULE(hv_timesync, vmbus, vmbus_timesync_driver,
-    vmbus_timesync_devclass, NULL, NULL);
+DRIVER_MODULE(hv_timesync, vmbus, vmbus_timesync_driver, NULL, NULL);
 MODULE_VERSION(hv_timesync, 1);
 MODULE_DEPEND(hv_timesync, vmbus, 1, 1, 1);
 
diff --git a/sys/dev/hyperv/vmbus/vmbus.c b/sys/dev/hyperv/vmbus/vmbus.c
index f0dea84426eb..b0cd750b26c8 100644
--- a/sys/dev/hyperv/vmbus/vmbus.c
+++ b/sys/dev/hyperv/vmbus/vmbus.c
@@ -208,11 +208,8 @@ static driver_t vmbus_driver = {
 	sizeof(struct vmbus_softc)
 };
 
-static devclass_t vmbus_devclass;
-
-DRIVER_MODULE(vmbus, pcib, vmbus_driver, vmbus_devclass, NULL, NULL);
-DRIVER_MODULE(vmbus, acpi_syscontainer, vmbus_driver, vmbus_devclass,
-    NULL, NULL);
+DRIVER_MODULE(vmbus, pcib, vmbus_driver, NULL, NULL);
+DRIVER_MODULE(vmbus, acpi_syscontainer, vmbus_driver, NULL, NULL);
 
 MODULE_DEPEND(vmbus, acpi, 1, 1, 1);
 MODULE_DEPEND(vmbus, pci, 1, 1, 1);
diff --git a/sys/dev/hyperv/vmbus/vmbus_et.c b/sys/dev/hyperv/vmbus/vmbus_et.c
index d9ab2a9485e7..c05e6466597e 100644
--- a/sys/dev/hyperv/vmbus/vmbus_et.c
+++ b/sys/dev/hyperv/vmbus/vmbus_et.c
@@ -78,9 +78,7 @@ static driver_t vmbus_et_driver = {
 	0
 };
 
-static devclass_t vmbus_et_devclass;
-
-DRIVER_MODULE(hv_et, vmbus, vmbus_et_driver, vmbus_et_devclass, NULL, NULL);
+DRIVER_MODULE(hv_et, vmbus, vmbus_et_driver, NULL, NULL);
 MODULE_VERSION(hv_et, 1);
 
 static __inline uint64_t
diff --git a/sys/dev/hyperv/vmbus/vmbus_res.c b/sys/dev/hyperv/vmbus/vmbus_res.c
index fba5a732ca58..d5f7ff033e3e 100644
--- a/sys/dev/hyperv/vmbus/vmbus_res.c
+++ b/sys/dev/hyperv/vmbus/vmbus_res.c
@@ -62,10 +62,7 @@ static driver_t vmbus_res_driver = {
 	1
 };
 
-static devclass_t vmbus_res_devclass;
-
-DRIVER_MODULE(vmbus_res, acpi, vmbus_res_driver, vmbus_res_devclass,
-    NULL, NULL);
+DRIVER_MODULE(vmbus_res, acpi, vmbus_res_driver, NULL, NULL);
 MODULE_DEPEND(vmbus_res, acpi, 1, 1, 1);
 MODULE_VERSION(vmbus_res, 1);