git: 68781fb37b61 - main - proto: Remove unused devclass arguments to DRIVER_MODULE.

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

URL: https://cgit.FreeBSD.org/src/commit/?id=68781fb37b61fa37e4c26ee67b20dd0b3ed8726b

commit 68781fb37b61fa37e4c26ee67b20dd0b3ed8726b
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

    proto: Remove unused devclass arguments to DRIVER_MODULE.
---
 sys/dev/proto/proto.h         | 1 -
 sys/dev/proto/proto_bus_isa.c | 4 ++--
 sys/dev/proto/proto_bus_pci.c | 2 +-
 sys/dev/proto/proto_core.c    | 1 -
 4 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/sys/dev/proto/proto.h b/sys/dev/proto/proto.h
index 14f6af648f82..fe6b06678ae9 100644
--- a/sys/dev/proto/proto.h
+++ b/sys/dev/proto/proto.h
@@ -58,7 +58,6 @@ struct proto_softc {
 	struct mtx	sc_mtx;
 };
 
-extern devclass_t proto_devclass;
 extern char proto_driver_name[];
 
 int proto_add_resource(struct proto_softc *, int, int, struct resource *);
diff --git a/sys/dev/proto/proto_bus_isa.c b/sys/dev/proto/proto_bus_isa.c
index 4dad91cc7cf9..15bb2911cb2d 100644
--- a/sys/dev/proto/proto_bus_isa.c
+++ b/sys/dev/proto/proto_bus_isa.c
@@ -120,5 +120,5 @@ proto_isa_attach(device_t dev)
 	return (proto_attach(dev));
 }
 
-DRIVER_MODULE(proto, acpi, proto_isa_driver, proto_devclass, NULL, NULL);
-DRIVER_MODULE(proto, isa, proto_isa_driver, proto_devclass, NULL, NULL);
+DRIVER_MODULE(proto, acpi, proto_isa_driver, NULL, NULL);
+DRIVER_MODULE(proto, isa, proto_isa_driver, NULL, NULL);
diff --git a/sys/dev/proto/proto_bus_pci.c b/sys/dev/proto/proto_bus_pci.c
index 38155ce7c624..23e753e142a5 100644
--- a/sys/dev/proto/proto_bus_pci.c
+++ b/sys/dev/proto/proto_bus_pci.c
@@ -115,4 +115,4 @@ proto_pci_attach(device_t dev)
 	return (proto_attach(dev));
 }
 
-DRIVER_MODULE(proto, pci, proto_pci_driver, proto_devclass, NULL, NULL);
+DRIVER_MODULE(proto, pci, proto_pci_driver, NULL, NULL);
diff --git a/sys/dev/proto/proto_core.c b/sys/dev/proto/proto_core.c
index 44199bdd7b8f..fb05eb66877d 100644
--- a/sys/dev/proto/proto_core.c
+++ b/sys/dev/proto/proto_core.c
@@ -66,7 +66,6 @@ CTASSERT(SYS_RES_IRQ != PROTO_RES_BUSDMA &&
     SYS_RES_MEMORY != PROTO_RES_BUSDMA &&
     SYS_RES_IOPORT != PROTO_RES_BUSDMA);
 
-devclass_t proto_devclass;
 char proto_driver_name[] = "proto";
 
 static d_open_t proto_open;