From 6ab0dfe50ce38f5699184056e69d58d26527a23c Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 6 May 2022 15:46:55 -0700 Subject: [PATCH] pccbb: Remove unused devclass argument to DRIVER_MODULE. --- sys/dev/pccbb/pccbb.c | 2 -- sys/dev/pccbb/pccbb_pci.c | 2 +- sys/dev/pccbb/pccbbvar.h | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/dev/pccbb/pccbb.c b/sys/dev/pccbb/pccbb.c index cc733d6b798f..c1d04c8a3da2 100644 --- a/sys/dev/pccbb/pccbb.c +++ b/sys/dev/pccbb/pccbb.c @@ -124,8 +124,6 @@ __FBSDID("$FreeBSD$"); #define CBB_START_32_IO 0x1000 #define CBB_START_16_IO 0x100 -devclass_t cbb_devclass; - /* sysctl vars */ static SYSCTL_NODE(_hw, OID_AUTO, cbb, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, "CBB parameters"); diff --git a/sys/dev/pccbb/pccbb_pci.c b/sys/dev/pccbb/pccbb_pci.c index 6de68f2759f6..22196d39247f 100644 --- a/sys/dev/pccbb/pccbb_pci.c +++ b/sys/dev/pccbb/pccbb_pci.c @@ -974,7 +974,7 @@ static driver_t cbb_driver = { sizeof(struct cbb_softc) }; -DRIVER_MODULE(cbb, pci, cbb_driver, cbb_devclass, 0, 0); +DRIVER_MODULE(cbb, pci, cbb_driver, 0, 0); MODULE_PNP_INFO("W32:vendor/device;D:#", pci, cbb, yc_chipsets, nitems(yc_chipsets) - 1); MODULE_DEPEND(cbb, exca, 1, 1, 1); diff --git a/sys/dev/pccbb/pccbbvar.h b/sys/dev/pccbb/pccbbvar.h index c900199c2508..541579c16703 100644 --- a/sys/dev/pccbb/pccbbvar.h +++ b/sys/dev/pccbb/pccbbvar.h @@ -108,7 +108,6 @@ struct cbb_softc { #define CARD_OFF (CARD_VCC(0)) extern int cbb_debug; -extern devclass_t cbb_devclass; int cbb_activate_resource(device_t brdev, device_t child, int type, int rid, struct resource *r);