git: b5ed1dc10c8c - main - nvram2env: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 May 2022 17:36:44 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b5ed1dc10c8cf1617e989372cd1dcff72e9b4224 commit b5ed1dc10c8cf1617e989372cd1dcff72e9b4224 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 nvram2env: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/nvram2env/nvram2env.c | 2 -- sys/dev/nvram2env/nvram2env.h | 1 - sys/dev/nvram2env/nvram2env_mips.c | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/dev/nvram2env/nvram2env.c b/sys/dev/nvram2env/nvram2env.c index eb5d4c2ff1d0..5c031b1d9de8 100644 --- a/sys/dev/nvram2env/nvram2env.c +++ b/sys/dev/nvram2env/nvram2env.c @@ -284,5 +284,3 @@ driver_t nvram2env_driver = { nvram2env_methods, sizeof(struct nvram2env_softc), }; - -devclass_t nvram2env_devclass; diff --git a/sys/dev/nvram2env/nvram2env.h b/sys/dev/nvram2env/nvram2env.h index 511a85db1a49..cffcedfcda23 100644 --- a/sys/dev/nvram2env/nvram2env.h +++ b/sys/dev/nvram2env/nvram2env.h @@ -81,7 +81,6 @@ struct nvram { int nvram2env_attach(device_t); int nvram2env_probe(device_t); -extern devclass_t nvram2env_devclass; extern driver_t nvram2env_driver; #endif /* SYS_DEV_NVRAM2ENV_NVRAM2ENV_H_ */ diff --git a/sys/dev/nvram2env/nvram2env_mips.c b/sys/dev/nvram2env/nvram2env_mips.c index 2a669a392f58..0432d796b1dd 100644 --- a/sys/dev/nvram2env/nvram2env_mips.c +++ b/sys/dev/nvram2env/nvram2env_mips.c @@ -62,8 +62,7 @@ static device_method_t nvram2env_mips_methods[] = { DEFINE_CLASS_1(nvram2env, nvram2env_mips_driver, nvram2env_mips_methods, sizeof(struct nvram2env_softc), nvram2env_driver); -DRIVER_MODULE(nvram2env_mips, nexus, nvram2env_mips_driver, nvram2env_devclass, - NULL, NULL); +DRIVER_MODULE(nvram2env_mips, nexus, nvram2env_mips_driver, NULL, NULL); MODULE_VERSION(nvram2env_mips, 1); MODULE_DEPEND(nvram2env_mips, nvram2env, 1, 1, 1);