git: 8c13dd83a35b - main - Remove unused iicbb_devclass.

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

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

commit 8c13dd83a35b8e4f138ae13480535c6fe76b02d1
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-19 21:47:29 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-06 22:39:30 +0000

    Remove unused iicbb_devclass.
---
 sys/compat/linuxkpi/common/src/linux_i2cbb.c | 2 +-
 sys/dev/gpio/gpioiic.c                       | 2 +-
 sys/dev/iicbus/iicbb.c                       | 2 --
 sys/dev/iicbus/iiconf.h                      | 1 -
 sys/dev/ppbus/lpbb.c                         | 2 +-
 sys/dev/viapm/viapm.c                        | 2 +-
 6 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/sys/compat/linuxkpi/common/src/linux_i2cbb.c b/sys/compat/linuxkpi/common/src/linux_i2cbb.c
index e6f851bee103..9199062f957c 100644
--- a/sys/compat/linuxkpi/common/src/linux_i2cbb.c
+++ b/sys/compat/linuxkpi/common/src/linux_i2cbb.c
@@ -130,7 +130,7 @@ driver_t lkpi_iicbb_driver = {
 };
 
 DRIVER_MODULE(lkpi_iicbb, lkpi_iic, lkpi_iicbb_driver, lkpi_iicbb_devclass, 0, 0);
-DRIVER_MODULE(iicbb, lkpi_iicbb, iicbb_driver, iicbb_devclass, 0, 0);
+DRIVER_MODULE(iicbb, lkpi_iicbb, iicbb_driver, 0, 0);
 MODULE_DEPEND(lkpi_iicbb, iicbb, IICBB_MINVER, IICBB_PREFVER, IICBB_MAXVER);
 
 static void
diff --git a/sys/dev/gpio/gpioiic.c b/sys/dev/gpio/gpioiic.c
index 6d62a6d04d95..d904ec124b9a 100644
--- a/sys/dev/gpio/gpioiic.c
+++ b/sys/dev/gpio/gpioiic.c
@@ -371,6 +371,6 @@ static driver_t gpioiic_driver = {
 
 DRIVER_MODULE(gpioiic, gpiobus, gpioiic_driver, gpioiic_devclass, 0, 0);
 DRIVER_MODULE(gpioiic, simplebus, gpioiic_driver, gpioiic_devclass, 0, 0);
-DRIVER_MODULE(iicbb, gpioiic, iicbb_driver, iicbb_devclass, 0, 0);
+DRIVER_MODULE(iicbb, gpioiic, iicbb_driver, 0, 0);
 MODULE_DEPEND(gpioiic, iicbb, IICBB_MINVER, IICBB_PREFVER, IICBB_MAXVER);
 MODULE_DEPEND(gpioiic, gpiobus, 1, 1, 1);
diff --git a/sys/dev/iicbus/iicbb.c b/sys/dev/iicbus/iicbb.c
index caa544ef403c..f190ff81f199 100644
--- a/sys/dev/iicbus/iicbb.c
+++ b/sys/dev/iicbus/iicbb.c
@@ -132,8 +132,6 @@ driver_t iicbb_driver = {
 	sizeof(struct iicbb_softc),
 };
 
-devclass_t iicbb_devclass;
-
 static int
 iicbb_probe(device_t dev)
 {
diff --git a/sys/dev/iicbus/iiconf.h b/sys/dev/iicbus/iiconf.h
index b6a9c3b54fcf..df1150917f6a 100644
--- a/sys/dev/iicbus/iiconf.h
+++ b/sys/dev/iicbus/iiconf.h
@@ -173,7 +173,6 @@ int iicdev_writeto(device_t _slavedev, uint8_t _regaddr, void *_buffer,
 #define IICBUS_PREFVER	IICBUS_MODVER
 
 extern driver_t iicbb_driver;
-extern devclass_t iicbb_devclass;
 
 #define IICBB_MODVER	1
 #define IICBB_MINVER	1
diff --git a/sys/dev/ppbus/lpbb.c b/sys/dev/ppbus/lpbb.c
index 9bf9eaec6ba2..984ea2e170c6 100644
--- a/sys/dev/ppbus/lpbb.c
+++ b/sys/dev/ppbus/lpbb.c
@@ -264,7 +264,7 @@ static driver_t lpbb_driver = {
 };
 
 DRIVER_MODULE(lpbb, ppbus, lpbb_driver, lpbb_devclass, 0, 0);
-DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0);
+DRIVER_MODULE(iicbb, lpbb, iicbb_driver, 0, 0);
 MODULE_DEPEND(lpbb, ppbus, 1, 1, 1);
 MODULE_DEPEND(lpbb, iicbb, IICBB_MINVER, IICBB_PREFVER, IICBB_MAXVER);
 MODULE_VERSION(lpbb, 1);
diff --git a/sys/dev/viapm/viapm.c b/sys/dev/viapm/viapm.c
index 4f3016eddc21..83550963ab15 100644
--- a/sys/dev/viapm/viapm.c
+++ b/sys/dev/viapm/viapm.c
@@ -1005,7 +1005,7 @@ static driver_t viapropm_driver = {
 
 DRIVER_MODULE(viapm, pci, viapm_driver, viapm_devclass, 0, 0);
 DRIVER_MODULE(viapropm, pci, viapropm_driver, viapropm_devclass, 0, 0);
-DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0);
+DRIVER_MODULE(iicbb, viapm, iicbb_driver, 0, 0);
 DRIVER_MODULE(smbus, viapropm, smbus_driver, smbus_devclass, 0, 0);
 
 MODULE_DEPEND(viapm, pci, 1, 1, 1);