git: d1524801c3ba - main - dpaa: Remove unused devclass arguments to DRIVER_MODULE.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 10 May 2022 17:36:37 UTC
The branch main has been updated by jhb:

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

commit d1524801c3ba25b1b54f0ac11fb0ab0e81dba198
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-10 17:21:39 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-10 17:21:39 +0000

    dpaa: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/dpaa/bman_fdt.c     | 9 +++------
 sys/dev/dpaa/fman_fdt.c     | 3 +--
 sys/dev/dpaa/fman_mdio.c    | 3 +--
 sys/dev/dpaa/if_dtsec_fdt.c | 3 +--
 sys/dev/dpaa/qman_fdt.c     | 9 +++------
 5 files changed, 9 insertions(+), 18 deletions(-)

diff --git a/sys/dev/dpaa/bman_fdt.c b/sys/dev/dpaa/bman_fdt.c
index 1e7bce6be43c..d3f65b5b692a 100644
--- a/sys/dev/dpaa/bman_fdt.c
+++ b/sys/dev/dpaa/bman_fdt.c
@@ -67,9 +67,7 @@ static driver_t bman_driver = {
 	sizeof(struct bman_softc),
 };
 
-static devclass_t bman_devclass;
-EARLY_DRIVER_MODULE(bman, simplebus, bman_driver, bman_devclass, 0, 0,
-    BUS_PASS_SUPPORTDEV);
+EARLY_DRIVER_MODULE(bman, simplebus, bman_driver, 0, 0, BUS_PASS_SUPPORTDEV);
 
 static int
 bman_fdt_probe(device_t dev)
@@ -106,9 +104,8 @@ static driver_t bm_portals_driver = {
 	sizeof(struct dpaa_portals_softc),
 };
 
-static devclass_t bm_portals_devclass;
-EARLY_DRIVER_MODULE(bman_portals, ofwbus, bm_portals_driver,
-    bm_portals_devclass, 0, 0, BUS_PASS_BUS);
+EARLY_DRIVER_MODULE(bman_portals, ofwbus, bm_portals_driver, 0, 0,
+    BUS_PASS_BUS);
 
 static void
 get_addr_props(phandle_t node, uint32_t *addrp, uint32_t *sizep)
diff --git a/sys/dev/dpaa/fman_fdt.c b/sys/dev/dpaa/fman_fdt.c
index 6f7950f308c4..b6234179b382 100644
--- a/sys/dev/dpaa/fman_fdt.c
+++ b/sys/dev/dpaa/fman_fdt.c
@@ -64,8 +64,7 @@ static device_method_t fman_methods[] = {
 
 DEFINE_CLASS_1(fman, fman_driver, fman_methods,
     sizeof(struct fman_softc), simplebus_driver);
-static devclass_t fman_devclass;
-EARLY_DRIVER_MODULE(fman, simplebus, fman_driver, fman_devclass, 0, 0,
+EARLY_DRIVER_MODULE(fman, simplebus, fman_driver, 0, 0,
     BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
 
 
diff --git a/sys/dev/dpaa/fman_mdio.c b/sys/dev/dpaa/fman_mdio.c
index 7f5b4761b098..fcaca5c580c9 100644
--- a/sys/dev/dpaa/fman_mdio.c
+++ b/sys/dev/dpaa/fman_mdio.c
@@ -204,8 +204,7 @@ pqmdio_miibus_writereg(device_t dev, int phy, int reg, int value)
 	return (0);
 }
 
-static devclass_t pqmdio_devclass;
-DRIVER_MODULE(pqmdio, fman, pqmdio_driver, pqmdio_devclass, 0, 0);
+DRIVER_MODULE(pqmdio, fman, pqmdio_driver, 0, 0);
 DRIVER_MODULE(miibus, pqmdio, miibus_driver, 0, 0);
 MODULE_DEPEND(pqmdio, miibus, 1, 1, 1);
 
diff --git a/sys/dev/dpaa/if_dtsec_fdt.c b/sys/dev/dpaa/if_dtsec_fdt.c
index 65010dc38f5e..67f34683b66a 100644
--- a/sys/dev/dpaa/if_dtsec_fdt.c
+++ b/sys/dev/dpaa/if_dtsec_fdt.c
@@ -89,8 +89,7 @@ static driver_t dtsec_driver = {
 	sizeof(struct dtsec_softc),
 };
 
-static devclass_t dtsec_devclass;
-DRIVER_MODULE(dtsec, fman, dtsec_driver, dtsec_devclass, 0, 0);
+DRIVER_MODULE(dtsec, fman, dtsec_driver, 0, 0);
 DRIVER_MODULE(miibus, dtsec, miibus_driver, 0, 0);
 MODULE_DEPEND(dtsec, ether, 1, 1, 1);
 MODULE_DEPEND(dtsec, miibus, 1, 1, 1);
diff --git a/sys/dev/dpaa/qman_fdt.c b/sys/dev/dpaa/qman_fdt.c
index bb40f724e7f1..3273b7e5a2da 100644
--- a/sys/dev/dpaa/qman_fdt.c
+++ b/sys/dev/dpaa/qman_fdt.c
@@ -67,9 +67,7 @@ static driver_t qman_driver = {
 	sizeof(struct qman_softc),
 };
 
-static devclass_t qman_devclass;
-EARLY_DRIVER_MODULE(qman, simplebus, qman_driver, qman_devclass, 0, 0,
-    BUS_PASS_SUPPORTDEV);
+EARLY_DRIVER_MODULE(qman, simplebus, qman_driver, 0, 0, BUS_PASS_SUPPORTDEV);
 
 static int
 qman_fdt_probe(device_t dev)
@@ -106,9 +104,8 @@ static driver_t qm_portals_driver = {
 	sizeof(struct dpaa_portals_softc),
 };
 
-static devclass_t qm_portals_devclass;
-EARLY_DRIVER_MODULE(qman_portals, ofwbus, qm_portals_driver,
-    qm_portals_devclass, 0, 0, BUS_PASS_BUS);
+EARLY_DRIVER_MODULE(qman_portals, ofwbus, qm_portals_driver, 0, 0,
+    BUS_PASS_BUS);
 
 static void
 get_addr_props(phandle_t node, uint32_t *addrp, uint32_t *sizep)