git: 42f777fc202b - main - Remove unused adb_devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 May 2022 17:36:12 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=42f777fc202bb41aa786b18fda51b205e740b47b commit 42f777fc202bb41aa786b18fda51b205e740b47b 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 adb_devclass. --- sys/dev/adb/adb.h | 1 - sys/dev/adb/adb_bus.c | 2 -- sys/powerpc/powermac/cuda.c | 2 +- sys/powerpc/powermac/pmu.c | 2 +- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/dev/adb/adb.h b/sys/dev/adb/adb.h index 6b007c469597..c29a52dac623 100644 --- a/sys/dev/adb/adb.h +++ b/sys/dev/adb/adb.h @@ -74,7 +74,6 @@ size_t adb_read_register(device_t dev, u_char reg, void *data); size_t adb_write_register(device_t dev, u_char reg, size_t len, void *data); /* Bits for implementing ADB host bus adapters */ -extern devclass_t adb_devclass; extern driver_t adb_driver; #endif diff --git a/sys/dev/adb/adb_bus.c b/sys/dev/adb/adb_bus.c index 8c300c83df10..e5f858a2a227 100644 --- a/sys/dev/adb/adb_bus.c +++ b/sys/dev/adb/adb_bus.c @@ -78,8 +78,6 @@ driver_t adb_driver = { sizeof(struct adb_softc), }; -devclass_t adb_devclass; - static int adb_bus_probe(device_t dev) { diff --git a/sys/powerpc/powermac/cuda.c b/sys/powerpc/powermac/cuda.c index 3c17448187e7..0feb197143f3 100644 --- a/sys/powerpc/powermac/cuda.c +++ b/sys/powerpc/powermac/cuda.c @@ -116,7 +116,7 @@ static driver_t cuda_driver = { static devclass_t cuda_devclass; DRIVER_MODULE(cuda, macio, cuda_driver, cuda_devclass, 0, 0); -DRIVER_MODULE(adb, cuda, adb_driver, adb_devclass, 0, 0); +DRIVER_MODULE(adb, cuda, adb_driver, 0, 0); static void cuda_intr(void *arg); static uint8_t cuda_read_reg(struct cuda_softc *sc, u_int offset); diff --git a/sys/powerpc/powermac/pmu.c b/sys/powerpc/powermac/pmu.c index 642206fd4f78..56194d85e7bb 100644 --- a/sys/powerpc/powermac/pmu.c +++ b/sys/powerpc/powermac/pmu.c @@ -158,7 +158,7 @@ static devclass_t pmu_devclass; EARLY_DRIVER_MODULE(pmu, macio, pmu_driver, pmu_devclass, 0, 0, BUS_PASS_RESOURCE); -DRIVER_MODULE(adb, pmu, adb_driver, adb_devclass, 0, 0); +DRIVER_MODULE(adb, pmu, adb_driver, 0, 0); static int pmuextint_probe(device_t); static int pmuextint_attach(device_t);