git: 2d51cd131372 - main - Remove unused cfi_diskclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 May 2022 17:36:33 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2d51cd13137240c5e12b709a94dcf9c40a161d4d commit 2d51cd13137240c5e12b709a94dcf9c40a161d4d Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-10 17:21:39 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-10 17:21:39 +0000 Remove unused cfi_diskclass. --- sys/dev/cfi/cfi_core.c | 1 - sys/dev/cfi/cfi_disk.c | 2 +- sys/dev/cfi/cfi_var.h | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/cfi/cfi_core.c b/sys/dev/cfi/cfi_core.c index 929397617524..018d35af5250 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_diskclass; uint32_t cfi_read_raw(struct cfi_softc *sc, u_int ofs) diff --git a/sys/dev/cfi/cfi_disk.c b/sys/dev/cfi/cfi_disk.c index 5e55f79532dd..a79643b7c7da 100644 --- a/sys/dev/cfi/cfi_disk.c +++ b/sys/dev/cfi/cfi_disk.c @@ -356,4 +356,4 @@ static driver_t cfi_disk_driver = { cfi_disk_methods, sizeof(struct cfi_disk_softc), }; -DRIVER_MODULE(cfid, cfi, cfi_disk_driver, cfi_diskclass, 0, NULL); +DRIVER_MODULE(cfid, cfi, cfi_disk_driver, NULL, NULL); diff --git a/sys/dev/cfi/cfi_var.h b/sys/dev/cfi/cfi_var.h index a5e9f57edd36..336ec6e28ead 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_diskclass; int cfi_probe(device_t); int cfi_attach(device_t);