git: 55771d1c0b65 - main - puc: Remove unused devclass argument to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 23:24:41 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=55771d1c0b65416e490239162769f9ccd3b29c1e commit 55771d1c0b65416e490239162769f9ccd3b29c1e Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-06 22:46:55 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:46:55 +0000 puc: Remove unused devclass argument to DRIVER_MODULE. --- sys/dev/puc/puc.c | 1 - sys/dev/puc/puc_bfe.h | 1 - sys/dev/puc/puc_pci.c | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c index e8130a5f2e9e..4df42d2c4f95 100644 --- a/sys/dev/puc/puc.c +++ b/sys/dev/puc/puc.c @@ -69,7 +69,6 @@ struct puc_port { int p_ipend; }; -devclass_t puc_devclass; const char puc_driver_name[] = "puc"; static MALLOC_DEFINE(M_PUC, "PUC", "PUC driver"); diff --git a/sys/dev/puc/puc_bfe.h b/sys/dev/puc/puc_bfe.h index 067a18ba1e71..0b079107538d 100644 --- a/sys/dev/puc/puc_bfe.h +++ b/sys/dev/puc/puc_bfe.h @@ -38,7 +38,6 @@ struct puc_port; extern const struct puc_cfg puc_pci_devices[]; -extern devclass_t puc_devclass; extern const char puc_driver_name[]; struct puc_bar { diff --git a/sys/dev/puc/puc_pci.c b/sys/dev/puc/puc_pci.c index 270634f299f8..96275a8f87fe 100644 --- a/sys/dev/puc/puc_pci.c +++ b/sys/dev/puc/puc_pci.c @@ -197,6 +197,6 @@ static driver_t puc_pci_driver = { sizeof(struct puc_softc), }; -DRIVER_MODULE(puc, pci, puc_pci_driver, puc_devclass, 0, 0); +DRIVER_MODULE(puc, pci, puc_pci_driver, 0, 0); MODULE_PNP_INFO("U16:vendor;U16:device;U16:#;U16:#;D:#", pci, puc, puc_pci_devices, nitems(puc_pci_devices) - 1);