git: 52ed569ba542 - main - Remove unused openpic_devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 May 2022 17:36:17 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=52ed569ba542a76f9e259b16be43e32360112df8 commit 52ed569ba542a76f9e259b16be43e32360112df8 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-10 17:21:38 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-10 17:21:38 +0000 Remove unused openpic_devclass. --- sys/powerpc/include/openpicvar.h | 2 -- sys/powerpc/ofw/openpic_ofw.c | 10 +++++----- sys/powerpc/powermac/cpcht.c | 4 ++-- sys/powerpc/powerpc/openpic.c | 2 -- sys/powerpc/psim/openpic_iobus.c | 2 +- 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/sys/powerpc/include/openpicvar.h b/sys/powerpc/include/openpicvar.h index 123af7c1a502..d848a69f5585 100644 --- a/sys/powerpc/include/openpicvar.h +++ b/sys/powerpc/include/openpicvar.h @@ -69,8 +69,6 @@ struct openpic_softc { }; -extern devclass_t openpic_devclass; - /* * Bus-independent attach i/f */ diff --git a/sys/powerpc/ofw/openpic_ofw.c b/sys/powerpc/ofw/openpic_ofw.c index 7790a9b3aa3a..fc9fa25e0d17 100644 --- a/sys/powerpc/ofw/openpic_ofw.c +++ b/sys/powerpc/ofw/openpic_ofw.c @@ -95,11 +95,11 @@ static driver_t openpic_ofw_driver = { sizeof(struct openpic_softc), }; -EARLY_DRIVER_MODULE(openpic, ofwbus, openpic_ofw_driver, openpic_devclass, - 0, 0, BUS_PASS_INTERRUPT); -EARLY_DRIVER_MODULE(openpic, simplebus, openpic_ofw_driver, openpic_devclass, - 0, 0, BUS_PASS_INTERRUPT); -EARLY_DRIVER_MODULE(openpic, macio, openpic_ofw_driver, openpic_devclass, 0, 0, +EARLY_DRIVER_MODULE(openpic, ofwbus, openpic_ofw_driver, 0, 0, + BUS_PASS_INTERRUPT); +EARLY_DRIVER_MODULE(openpic, simplebus, openpic_ofw_driver, 0, 0, + BUS_PASS_INTERRUPT); +EARLY_DRIVER_MODULE(openpic, macio, openpic_ofw_driver, 0, 0, BUS_PASS_INTERRUPT); static int diff --git a/sys/powerpc/powermac/cpcht.c b/sys/powerpc/powermac/cpcht.c index 965b1eeb45e7..c4b658f2347a 100644 --- a/sys/powerpc/powermac/cpcht.c +++ b/sys/powerpc/powermac/cpcht.c @@ -549,8 +549,8 @@ static driver_t openpic_cpcht_driver = { sizeof(struct openpic_cpcht_softc), }; -EARLY_DRIVER_MODULE(openpic, unin, openpic_cpcht_driver, openpic_devclass, - 0, 0, BUS_PASS_INTERRUPT); +EARLY_DRIVER_MODULE(openpic, unin, openpic_cpcht_driver, 0, 0, + BUS_PASS_INTERRUPT); static int openpic_cpcht_probe(device_t dev) diff --git a/sys/powerpc/powerpc/openpic.c b/sys/powerpc/powerpc/openpic.c index a8371e18c6ef..39c85082c063 100644 --- a/sys/powerpc/powerpc/openpic.c +++ b/sys/powerpc/powerpc/openpic.c @@ -54,8 +54,6 @@ #define OPENPIC_NIPIS 4 -devclass_t openpic_devclass; - /* * Local routines */ diff --git a/sys/powerpc/psim/openpic_iobus.c b/sys/powerpc/psim/openpic_iobus.c index 85f2a34b2e0b..40ab06d93347 100644 --- a/sys/powerpc/psim/openpic_iobus.c +++ b/sys/powerpc/psim/openpic_iobus.c @@ -89,7 +89,7 @@ static driver_t openpic_iobus_driver = { sizeof(struct openpic_softc) }; -DRIVER_MODULE(openpic, iobus, openpic_iobus_driver, openpic_devclass, 0, 0); +DRIVER_MODULE(openpic, iobus, openpic_iobus_driver, 0, 0); static int openpic_iobus_probe(device_t dev)