git: 0a73fdb90382 - main - fdt simple drivers: Remove unused devclass arguments to DRIVER_MODULE.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 09 May 2022 21:47:40 UTC
The branch main has been updated by jhb:

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

commit 0a73fdb903822d04798de6a8af9c34ea90ee4306
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-09 21:26:44 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-09 21:26:44 +0000

    fdt simple drivers: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/fdt/simple_mfd.c | 6 ++----
 sys/dev/fdt/simplebus.c  | 8 +++-----
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/sys/dev/fdt/simple_mfd.c b/sys/dev/fdt/simple_mfd.c
index aedada3079e8..da70bc823d03 100644
--- a/sys/dev/fdt/simple_mfd.c
+++ b/sys/dev/fdt/simple_mfd.c
@@ -320,8 +320,6 @@ static device_method_t simple_mfd_methods[] = {
 DEFINE_CLASS_1(simple_mfd, simple_mfd_driver, simple_mfd_methods,
   sizeof(struct simple_mfd_softc), simplebus_driver);
 
-static devclass_t simple_mfd_devclass;
-
-EARLY_DRIVER_MODULE(simple_mfd, simplebus, simple_mfd_driver,
-    simple_mfd_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_LATE);
+EARLY_DRIVER_MODULE(simple_mfd, simplebus, simple_mfd_driver, 0, 0,
+    BUS_PASS_BUS + BUS_PASS_ORDER_LATE);
 MODULE_VERSION(simple_mfd, 1);
diff --git a/sys/dev/fdt/simplebus.c b/sys/dev/fdt/simplebus.c
index b5a10f83055c..ed472f87b57d 100644
--- a/sys/dev/fdt/simplebus.c
+++ b/sys/dev/fdt/simplebus.c
@@ -109,11 +109,9 @@ static device_method_t	simplebus_methods[] = {
 DEFINE_CLASS_0(simplebus, simplebus_driver, simplebus_methods,
     sizeof(struct simplebus_softc));
 
-static devclass_t simplebus_devclass;
-EARLY_DRIVER_MODULE(simplebus, ofwbus, simplebus_driver, simplebus_devclass,
-    0, 0, BUS_PASS_BUS);
-EARLY_DRIVER_MODULE(simplebus, simplebus, simplebus_driver, simplebus_devclass,
-    0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
+EARLY_DRIVER_MODULE(simplebus, ofwbus, simplebus_driver, 0, 0, BUS_PASS_BUS);
+EARLY_DRIVER_MODULE(simplebus, simplebus, simplebus_driver, 0, 0,
+    BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
 
 static int
 simplebus_probe(device_t dev)