git: ba58fd668a0e - main - p2sb: Remove unused devclass arguments to DRIVER_MODULE.

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

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

commit ba58fd668a0e544b4af225f6dfee402e3213a8bf
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

    p2sb: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/p2sb/lewisburg_gpio.c   | 4 +---
 sys/dev/p2sb/lewisburg_gpiocm.c | 4 ++--
 sys/dev/p2sb/p2sb.c             | 4 +---
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/sys/dev/p2sb/lewisburg_gpio.c b/sys/dev/p2sb/lewisburg_gpio.c
index d0b08520eb87..b45d7767602c 100644
--- a/sys/dev/p2sb/lewisburg_gpio.c
+++ b/sys/dev/p2sb/lewisburg_gpio.c
@@ -263,7 +263,5 @@ static driver_t lbggpio_driver = {
 	sizeof(struct lbggpio_softc)
 };
 
-static devclass_t lbggpio_devclass;
-
-DRIVER_MODULE(lbggpio, lbggpiocm, lbggpio_driver, lbggpio_devclass, NULL, NULL);
+DRIVER_MODULE(lbggpio, lbggpiocm, lbggpio_driver, NULL, NULL);
 MODULE_DEPEND(lbggpio, gpiobus, 1, 1, 1);
diff --git a/sys/dev/p2sb/lewisburg_gpiocm.c b/sys/dev/p2sb/lewisburg_gpiocm.c
index 4a046a50aed4..e46575217d92 100644
--- a/sys/dev/p2sb/lewisburg_gpiocm.c
+++ b/sys/dev/p2sb/lewisburg_gpiocm.c
@@ -347,5 +347,5 @@ static driver_t lbggpiocm_driver = {
 	lbggpiocm_methods,
 	sizeof(struct lbggpiocm_softc)
 };
-static devclass_t lbggpiocm_devclass;
-DRIVER_MODULE(lbggpiocm, p2sb, lbggpiocm_driver, lbggpiocm_devclass, NULL, NULL);
+
+DRIVER_MODULE(lbggpiocm, p2sb, lbggpiocm_driver, NULL, NULL);
diff --git a/sys/dev/p2sb/p2sb.c b/sys/dev/p2sb/p2sb.c
index 80836cbb2f59..2f294f03158a 100644
--- a/sys/dev/p2sb/p2sb.c
+++ b/sys/dev/p2sb/p2sb.c
@@ -209,7 +209,5 @@ static device_method_t p2sb_methods[] = {
 	DEVMETHOD_END
 };
 
-static devclass_t p2sb_devclass;
-
 DEFINE_CLASS_0(p2sb, p2sb_driver, p2sb_methods, sizeof(struct p2sb_softc));
-DRIVER_MODULE(p2sb, pci, p2sb_driver, p2sb_devclass, 0, 0);
+DRIVER_MODULE(p2sb, pci, p2sb_driver, 0, 0);