git: 024d94736296 - main - pwm: Remove unused devclass arguments to DRIVER_MODULE.

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

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

commit 024d94736296546e643fc90868303d1b592cfef2
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-09 19:22:03 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-09 19:22:03 +0000

    pwm: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/pwm/ofw_pwmbus.c    | 6 ++----
 sys/dev/pwm/pwm_backlight.c | 4 +---
 sys/dev/pwm/pwmbus.c        | 5 ++---
 sys/dev/pwm/pwmbus.h        | 2 --
 sys/dev/pwm/pwmc.c          | 3 +--
 5 files changed, 6 insertions(+), 14 deletions(-)

diff --git a/sys/dev/pwm/ofw_pwmbus.c b/sys/dev/pwm/ofw_pwmbus.c
index 4a961c39e4d3..267e3d7a0906 100644
--- a/sys/dev/pwm/ofw_pwmbus.c
+++ b/sys/dev/pwm/ofw_pwmbus.c
@@ -213,11 +213,9 @@ static device_method_t ofw_pwmbus_methods[] = {
 	DEVMETHOD_END
 };
 
-devclass_t ofw_pwmbus_devclass;
-
 DEFINE_CLASS_1(pwmbus, ofw_pwmbus_driver, ofw_pwmbus_methods,
     sizeof(struct pwmbus_softc), pwmbus_driver);
-EARLY_DRIVER_MODULE(ofw_pwmbus, pwm, ofw_pwmbus_driver, ofw_pwmbus_devclass,
-    0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
+EARLY_DRIVER_MODULE(ofw_pwmbus, pwm, ofw_pwmbus_driver, 0, 0,
+    BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
 MODULE_VERSION(ofw_pwmbus, 1);
 MODULE_DEPEND(ofw_pwmbus, pwmbus, 1, 1, 1);
diff --git a/sys/dev/pwm/pwm_backlight.c b/sys/dev/pwm/pwm_backlight.c
index 3a6ec7f61fec..d1ec31721cf1 100644
--- a/sys/dev/pwm/pwm_backlight.c
+++ b/sys/dev/pwm/pwm_backlight.c
@@ -304,9 +304,7 @@ driver_t pwm_backlight_driver = {
 	pwm_backlight_methods,
 	sizeof(struct pwm_backlight_softc),
 };
-devclass_t pwm_backlight_devclass;
 
-DRIVER_MODULE(pwm_backlight, simplebus, pwm_backlight_driver,
-    pwm_backlight_devclass, 0, 0);
+DRIVER_MODULE(pwm_backlight, simplebus, pwm_backlight_driver, 0, 0);
 MODULE_DEPEND(pwm_backlight, backlight, 1, 1, 1);
 OFWBUS_PNP_INFO(compat_data);
diff --git a/sys/dev/pwm/pwmbus.c b/sys/dev/pwm/pwmbus.c
index 4c818074f68c..51857d26b7f5 100644
--- a/sys/dev/pwm/pwmbus.c
+++ b/sys/dev/pwm/pwmbus.c
@@ -277,8 +277,7 @@ driver_t pwmbus_driver = {
 	pwmbus_methods,
 	sizeof(struct pwmbus_softc),
 };
-devclass_t pwmbus_devclass;
 
-EARLY_DRIVER_MODULE(pwmbus, pwm, pwmbus_driver, pwmbus_devclass, 0, 0,
-  BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
+EARLY_DRIVER_MODULE(pwmbus, pwm, pwmbus_driver, 0, 0,
+    BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
 MODULE_VERSION(pwmbus, 1);
diff --git a/sys/dev/pwm/pwmbus.h b/sys/dev/pwm/pwmbus.h
index 7ace2ef41b1b..251a856bc521 100644
--- a/sys/dev/pwm/pwmbus.h
+++ b/sys/dev/pwm/pwmbus.h
@@ -66,8 +66,6 @@ PWMBUS_ACCESSOR(channel, CHANNEL, u_int)
 #endif
 
 extern driver_t   pwmbus_driver;
-extern devclass_t pwmbus_devclass;
 extern driver_t   ofw_pwmbus_driver;
-extern devclass_t ofw_pwmbus_devclass;
 
 #endif /* _PWMBUS_H_ */
diff --git a/sys/dev/pwm/pwmc.c b/sys/dev/pwm/pwmc.c
index b2f12add3e2b..06a28cc4cae7 100644
--- a/sys/dev/pwm/pwmc.c
+++ b/sys/dev/pwm/pwmc.c
@@ -216,8 +216,7 @@ static driver_t pwmc_driver = {
 	pwmc_methods,
 	sizeof(struct pwmc_softc),
 };
-static devclass_t pwmc_devclass;
 
-DRIVER_MODULE(pwmc, pwmbus, pwmc_driver, pwmc_devclass, 0, 0);
+DRIVER_MODULE(pwmc, pwmbus, pwmc_driver, 0, 0);
 MODULE_DEPEND(pwmc, pwmbus, 1, 1, 1);
 MODULE_VERSION(pwmc, 1);