git: 6f70f80c7525 - main - gem: Remove unused devclass argument to DRIVER_MODULE.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 06 May 2022 22:43:20 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=6f70f80c752524e92fde19d9029f8fd73b68693c

commit 6f70f80c752524e92fde19d9029f8fd73b68693c
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-19 21:16:31 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-06 22:39:30 +0000

    gem: Remove unused devclass argument to DRIVER_MODULE.
---
 sys/dev/gem/if_gem.c     | 1 -
 sys/dev/gem/if_gem_pci.c | 2 +-
 sys/dev/gem/if_gemvar.h  | 2 --
 3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/sys/dev/gem/if_gem.c b/sys/dev/gem/if_gem.c
index 9996c33ca161..7d6f7cc8e3b7 100644
--- a/sys/dev/gem/if_gem.c
+++ b/sys/dev/gem/if_gem.c
@@ -133,7 +133,6 @@ static void	gem_tint(struct gem_softc *sc);
 static inline void gem_txkick(struct gem_softc *sc);
 static int	gem_watchdog(struct gem_softc *sc);
 
-devclass_t gem_devclass;
 DRIVER_MODULE(miibus, gem, miibus_driver, 0, 0);
 MODULE_DEPEND(gem, miibus, 1, 1, 1);
 
diff --git a/sys/dev/gem/if_gem_pci.c b/sys/dev/gem/if_gem_pci.c
index 1b20d9352a71..b9ac9e191a4b 100644
--- a/sys/dev/gem/if_gem_pci.c
+++ b/sys/dev/gem/if_gem_pci.c
@@ -114,7 +114,7 @@ static driver_t gem_pci_driver = {
 	sizeof(struct gem_softc)
 };
 
-DRIVER_MODULE(gem, pci, gem_pci_driver, gem_devclass, 0, 0);
+DRIVER_MODULE(gem, pci, gem_pci_driver, 0, 0);
 MODULE_PNP_INFO("W32:vendor/device", pci, gem, gem_pci_devlist,
     nitems(gem_pci_devlist) - 1);
 MODULE_DEPEND(gem, pci, 1, 1, 1);
diff --git a/sys/dev/gem/if_gemvar.h b/sys/dev/gem/if_gemvar.h
index a19f44be75e7..f83ba9505b65 100644
--- a/sys/dev/gem/if_gemvar.h
+++ b/sys/dev/gem/if_gemvar.h
@@ -263,8 +263,6 @@ do {									\
 #define	GEM_LOCK_DESTROY(_sc)		mtx_destroy(&(_sc)->sc_mtx)
 
 #ifdef _KERNEL
-extern devclass_t gem_devclass;
-
 int	gem_attach(struct gem_softc *sc);
 void	gem_detach(struct gem_softc *sc);
 void	gem_intr(void *v);