git: d885615a4f09 - main - Remove unused gpioc_devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 19:22:39 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=d885615a4f091bbef04149a7d2bd914bfff7c737
commit d885615a4f091bbef04149a7d2bd914bfff7c737
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-09 19:22:01 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-09 19:22:01 +0000
Remove unused gpioc_devclass.
---
sys/arm/allwinner/axp209.c | 4 +---
sys/arm/allwinner/axp81x.c | 3 +--
sys/dev/gpio/gpioc.c | 4 +---
3 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/sys/arm/allwinner/axp209.c b/sys/arm/allwinner/axp209.c
index de14d324352e..2dda6cb558c2 100644
--- a/sys/arm/allwinner/axp209.c
+++ b/sys/arm/allwinner/axp209.c
@@ -1411,14 +1411,12 @@ static driver_t axp2xx_driver = {
};
static devclass_t axp2xx_devclass;
-extern devclass_t gpioc_devclass;
extern driver_t ofw_gpiobus_driver, gpioc_driver;
EARLY_DRIVER_MODULE(axp2xx, iicbus, axp2xx_driver, axp2xx_devclass,
0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
EARLY_DRIVER_MODULE(ofw_gpiobus, axp2xx_pmu, ofw_gpiobus_driver, 0, 0,
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
-DRIVER_MODULE(gpioc, axp2xx_pmu, gpioc_driver, gpioc_devclass,
- 0, 0);
+DRIVER_MODULE(gpioc, axp2xx_pmu, gpioc_driver, 0, 0);
MODULE_VERSION(axp2xx, 1);
MODULE_DEPEND(axp2xx, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
diff --git a/sys/arm/allwinner/axp81x.c b/sys/arm/allwinner/axp81x.c
index 82eb964aeb0a..17c74b244ded 100644
--- a/sys/arm/allwinner/axp81x.c
+++ b/sys/arm/allwinner/axp81x.c
@@ -1652,14 +1652,13 @@ static driver_t axp8xx_driver = {
};
static devclass_t axp8xx_devclass;
-extern devclass_t gpioc_devclass;
extern driver_t ofw_gpiobus_driver, gpioc_driver;
EARLY_DRIVER_MODULE(axp8xx, iicbus, axp8xx_driver, axp8xx_devclass, 0, 0,
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);
EARLY_DRIVER_MODULE(ofw_gpiobus, axp8xx_pmu, ofw_gpiobus_driver, 0, 0,
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST);
-DRIVER_MODULE(gpioc, axp8xx_pmu, gpioc_driver, gpioc_devclass, 0, 0);
+DRIVER_MODULE(gpioc, axp8xx_pmu, gpioc_driver, 0, 0);
MODULE_VERSION(axp8xx, 1);
MODULE_DEPEND(axp8xx, iicbus, 1, 1, 1);
SIMPLEBUS_PNP_INFO(compat_data);
diff --git a/sys/dev/gpio/gpioc.c b/sys/dev/gpio/gpioc.c
index 15d0848fc020..dda37ae54a92 100644
--- a/sys/dev/gpio/gpioc.c
+++ b/sys/dev/gpio/gpioc.c
@@ -1059,7 +1059,5 @@ driver_t gpioc_driver = {
sizeof(struct gpioc_softc)
};
-devclass_t gpioc_devclass;
-
-DRIVER_MODULE(gpioc, gpio, gpioc_driver, gpioc_devclass, 0, 0);
+DRIVER_MODULE(gpioc, gpio, gpioc_driver, 0, 0);
MODULE_VERSION(gpioc, 1);