git: 534c3629e60a - main - nvdimm: Remove unused devclass arguments to DRIVER_MODULE.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 09 May 2022 19:23:14 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=534c3629e60a1ac7938a57b7bf8d97da240347b2

commit 534c3629e60a1ac7938a57b7bf8d97da240347b2
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-09 19:22:03 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-09 19:22:03 +0000

    nvdimm: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/nvdimm/nvdimm.c      | 4 +---
 sys/dev/nvdimm/nvdimm_acpi.c | 4 +---
 sys/dev/nvdimm/nvdimm_e820.c | 4 +---
 3 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/sys/dev/nvdimm/nvdimm.c b/sys/dev/nvdimm/nvdimm.c
index 730fd49fef27..356b8a5f79c4 100644
--- a/sys/dev/nvdimm/nvdimm.c
+++ b/sys/dev/nvdimm/nvdimm.c
@@ -63,7 +63,6 @@ static struct uuid intel_nvdimm_dsm_uuid =
 #define INTEL_NVDIMM_DSM_GET_LABEL_SIZE 4
 #define INTEL_NVDIMM_DSM_GET_LABEL_DATA 5
 
-static devclass_t nvdimm_devclass;
 MALLOC_DEFINE(M_NVDIMM, "nvdimm", "NVDIMM driver memory");
 
 static int
@@ -469,6 +468,5 @@ nvdimm_find_by_handle(nfit_handle_t nv_handle)
 	return (res);
 }
 
-DRIVER_MODULE(nvdimm, nvdimm_acpi_root, nvdimm_driver, nvdimm_devclass, NULL,
-    NULL);
+DRIVER_MODULE(nvdimm, nvdimm_acpi_root, nvdimm_driver, NULL, NULL);
 MODULE_DEPEND(nvdimm, acpi, 1, 1, 1);
diff --git a/sys/dev/nvdimm/nvdimm_acpi.c b/sys/dev/nvdimm/nvdimm_acpi.c
index fc24556d6535..7e41b04fd60f 100644
--- a/sys/dev/nvdimm/nvdimm_acpi.c
+++ b/sys/dev/nvdimm/nvdimm_acpi.c
@@ -275,7 +275,5 @@ static driver_t	nvdimm_acpi_driver = {
 	sizeof(struct nvdimm_root_dev),
 };
 
-static devclass_t nvdimm_acpi_root_devclass;
-DRIVER_MODULE(nvdimm_acpi_root, acpi, nvdimm_acpi_driver,
-    nvdimm_acpi_root_devclass, NULL, NULL);
+DRIVER_MODULE(nvdimm_acpi_root, acpi, nvdimm_acpi_driver, NULL, NULL);
 MODULE_DEPEND(nvdimm_acpi_root, acpi, 1, 1, 1);
diff --git a/sys/dev/nvdimm/nvdimm_e820.c b/sys/dev/nvdimm/nvdimm_e820.c
index 35ca8c60d1d0..4ede2cac8da6 100644
--- a/sys/dev/nvdimm/nvdimm_e820.c
+++ b/sys/dev/nvdimm/nvdimm_e820.c
@@ -356,8 +356,6 @@ static driver_t	nvdimm_e820_driver = {
 	sizeof(struct nvdimm_e820_bus),
 };
 
-static devclass_t nvdimm_e820_devclass;
-
 static int
 nvdimm_e820_chainevh(struct module *m, int e, void *arg __unused)
 {
@@ -390,5 +388,5 @@ nvdimm_e820_chainevh(struct module *m, int e, void *arg __unused)
 	return (0);
 }
 
-DRIVER_MODULE(nvdimm_e820, nexus, nvdimm_e820_driver, nvdimm_e820_devclass,
+DRIVER_MODULE(nvdimm_e820, nexus, nvdimm_e820_driver,
     nvdimm_e820_chainevh, NULL);