git: 817be4317410 - main - Remove unused cfi_devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 19:22:31 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=817be431741061152012464603ac7d47aca16cce commit 817be431741061152012464603ac7d47aca16cce Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 19:22:00 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 19:22:00 +0000 Remove unused cfi_devclass. --- sys/dev/bhnd/cores/chipc/chipc_cfi.c | 2 +- sys/dev/cfi/cfi_bus_fdt.c | 4 ++-- sys/dev/cfi/cfi_bus_nexus.c | 3 ++- sys/dev/cfi/cfi_core.c | 1 - sys/dev/cfi/cfi_var.h | 1 - 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sys/dev/bhnd/cores/chipc/chipc_cfi.c b/sys/dev/bhnd/cores/chipc/chipc_cfi.c index 0602893d9027..78882527ec5c 100644 --- a/sys/dev/bhnd/cores/chipc/chipc_cfi.c +++ b/sys/dev/bhnd/cores/chipc/chipc_cfi.c @@ -87,4 +87,4 @@ static driver_t chipc_cfi_driver = { sizeof(struct cfi_softc), }; -DRIVER_MODULE(cfi, bhnd_chipc, chipc_cfi_driver, cfi_devclass, 0, 0); +DRIVER_MODULE(cfi, bhnd_chipc, chipc_cfi_driver, 0, 0); diff --git a/sys/dev/cfi/cfi_bus_fdt.c b/sys/dev/cfi/cfi_bus_fdt.c index 6e275b29106d..f0c6666569e3 100644 --- a/sys/dev/cfi/cfi_bus_fdt.c +++ b/sys/dev/cfi/cfi_bus_fdt.c @@ -62,8 +62,8 @@ static driver_t cfi_fdt_driver = { sizeof(struct cfi_softc), }; -DRIVER_MODULE (cfi, lbc, cfi_fdt_driver, cfi_devclass, 0, 0); -DRIVER_MODULE (cfi, simplebus, cfi_fdt_driver, cfi_devclass, 0, 0); +DRIVER_MODULE (cfi, lbc, cfi_fdt_driver, 0, 0); +DRIVER_MODULE (cfi, simplebus, cfi_fdt_driver, 0, 0); static int cfi_fdt_probe(device_t dev) diff --git a/sys/dev/cfi/cfi_bus_nexus.c b/sys/dev/cfi/cfi_bus_nexus.c index 1c2607aadf91..18e4ea00617b 100644 --- a/sys/dev/cfi/cfi_bus_nexus.c +++ b/sys/dev/cfi/cfi_bus_nexus.c @@ -80,4 +80,5 @@ static driver_t cfi_nexus_driver = { cfi_nexus_methods, sizeof(struct cfi_softc), }; -DRIVER_MODULE(cfi, nexus, cfi_nexus_driver, cfi_devclass, 0, 0); + +DRIVER_MODULE(cfi, nexus, cfi_nexus_driver, 0, 0); diff --git a/sys/dev/cfi/cfi_core.c b/sys/dev/cfi/cfi_core.c index 0c88fc8cf47e..929397617524 100644 --- a/sys/dev/cfi/cfi_core.c +++ b/sys/dev/cfi/cfi_core.c @@ -62,7 +62,6 @@ static void cfi_add_sysctls(struct cfi_softc *); extern struct cdevsw cfi_cdevsw; char cfi_driver_name[] = "cfi"; -devclass_t cfi_devclass; devclass_t cfi_diskclass; uint32_t diff --git a/sys/dev/cfi/cfi_var.h b/sys/dev/cfi/cfi_var.h index 4ac579c36a10..a5e9f57edd36 100644 --- a/sys/dev/cfi/cfi_var.h +++ b/sys/dev/cfi/cfi_var.h @@ -86,7 +86,6 @@ struct cfi_softc { }; extern char cfi_driver_name[]; -extern devclass_t cfi_devclass; extern devclass_t cfi_diskclass; int cfi_probe(device_t);