git: dfee3204c987 - main - ichsmb/imcsmb/intpm/ismt: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 19:22:56 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=dfee3204c98718efbdadb2439fd95ba312920ece commit dfee3204c98718efbdadb2439fd95ba312920ece Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 19:22:02 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 19:22:02 +0000 ichsmb/imcsmb/intpm/ismt: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/ichsmb/ichsmb_pci.c | 4 +--- sys/dev/imcsmb/imcsmb.c | 5 +---- sys/dev/imcsmb/imcsmb_pci.c | 5 +---- sys/dev/intpm/intpm.c | 5 +---- sys/dev/ismt/ismt.c | 4 +--- 5 files changed, 5 insertions(+), 18 deletions(-) diff --git a/sys/dev/ichsmb/ichsmb_pci.c b/sys/dev/ichsmb/ichsmb_pci.c index 32c6c1fbbcf2..1ef31cb2c773 100644 --- a/sys/dev/ichsmb/ichsmb_pci.c +++ b/sys/dev/ichsmb/ichsmb_pci.c @@ -250,9 +250,7 @@ static driver_t ichsmb_pci_driver = { sizeof(struct ichsmb_softc) }; -static devclass_t ichsmb_pci_devclass; - -DRIVER_MODULE(ichsmb, pci, ichsmb_pci_driver, ichsmb_pci_devclass, 0, 0); +DRIVER_MODULE(ichsmb, pci, ichsmb_pci_driver, 0, 0); static int ichsmb_pci_probe(device_t dev) diff --git a/sys/dev/imcsmb/imcsmb.c b/sys/dev/imcsmb/imcsmb.c index f5dfaa62f37a..a9ae70bd2f71 100644 --- a/sys/dev/imcsmb/imcsmb.c +++ b/sys/dev/imcsmb/imcsmb.c @@ -521,9 +521,6 @@ out: return (rc); } -/* Our device class */ -static devclass_t imcsmb_devclass; - /* Device methods */ static device_method_t imcsmb_methods[] = { /* Device interface */ @@ -547,7 +544,7 @@ static driver_t imcsmb_driver = { .size = sizeof(struct imcsmb_softc), }; -DRIVER_MODULE(imcsmb, imcsmb_pci, imcsmb_driver, imcsmb_devclass, 0, 0); +DRIVER_MODULE(imcsmb, imcsmb_pci, imcsmb_driver, 0, 0); MODULE_DEPEND(imcsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); MODULE_VERSION(imcsmb, 1); diff --git a/sys/dev/imcsmb/imcsmb_pci.c b/sys/dev/imcsmb/imcsmb_pci.c index 0843e61f88d1..09d5d6a263e7 100644 --- a/sys/dev/imcsmb/imcsmb_pci.c +++ b/sys/dev/imcsmb/imcsmb_pci.c @@ -318,9 +318,6 @@ imcsmb_pci_request_bus(device_t dev) return (rc); } -/* Our device class */ -static devclass_t imcsmb_pci_devclass; - /* Device methods */ static device_method_t imcsmb_pci_methods[] = { /* Device interface */ @@ -337,7 +334,7 @@ static driver_t imcsmb_pci_driver = { .size = sizeof(struct imcsmb_pci_softc), }; -DRIVER_MODULE(imcsmb_pci, pci, imcsmb_pci_driver, imcsmb_pci_devclass, 0, 0); +DRIVER_MODULE(imcsmb_pci, pci, imcsmb_pci_driver, 0, 0); MODULE_DEPEND(imcsmb_pci, pci, 1, 1, 1); MODULE_VERSION(imcsmb_pci, 1); diff --git a/sys/dev/intpm/intpm.c b/sys/dev/intpm/intpm.c index 2fd2fa7451be..e5a3d0a96a3b 100644 --- a/sys/dev/intpm/intpm.c +++ b/sys/dev/intpm/intpm.c @@ -869,8 +869,6 @@ intsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf) return (error); } -static devclass_t intsmb_devclass; - static device_method_t intsmb_methods[] = { /* Device interface */ DEVMETHOD(device_probe, intsmb_probe), @@ -899,8 +897,7 @@ static driver_t intsmb_driver = { sizeof(struct intsmb_softc), }; -DRIVER_MODULE_ORDERED(intsmb, pci, intsmb_driver, intsmb_devclass, 0, 0, - SI_ORDER_ANY); +DRIVER_MODULE_ORDERED(intsmb, pci, intsmb_driver, 0, 0, SI_ORDER_ANY); DRIVER_MODULE(smbus, intsmb, smbus_driver, 0, 0); MODULE_DEPEND(intsmb, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); MODULE_VERSION(intsmb, 1); diff --git a/sys/dev/ismt/ismt.c b/sys/dev/ismt/ismt.c index 38bd977762ea..f7768a6ab0a4 100644 --- a/sys/dev/ismt/ismt.c +++ b/sys/dev/ismt/ismt.c @@ -772,9 +772,7 @@ static driver_t ismt_pci_driver = { sizeof(struct ismt_softc) }; -static devclass_t ismt_pci_devclass; - -DRIVER_MODULE(ismt, pci, ismt_pci_driver, ismt_pci_devclass, 0, 0); +DRIVER_MODULE(ismt, pci, ismt_pci_driver, 0, 0); DRIVER_MODULE(smbus, ismt, smbus_driver, 0, 0); MODULE_DEPEND(ismt, pci, 1, 1, 1);