git: fd773e2bbf52 - main - ipmi: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 19:23:05 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=fd773e2bbf5281fd134f3206986344e54e5bb02d commit fd773e2bbf5281fd134f3206986344e54e5bb02d 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 ipmi: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/ipmi/ipmi.c | 2 -- sys/dev/ipmi/ipmi_acpi.c | 2 +- sys/dev/ipmi/ipmi_isa.c | 2 +- sys/dev/ipmi/ipmi_opal.c | 2 +- sys/dev/ipmi/ipmi_pci.c | 4 ++-- sys/dev/ipmi/ipmi_smbus.c | 2 +- sys/dev/ipmi/ipmivars.h | 1 - 7 files changed, 6 insertions(+), 9 deletions(-) diff --git a/sys/dev/ipmi/ipmi.c b/sys/dev/ipmi/ipmi.c index 3427c36ba615..c4fb804987c0 100644 --- a/sys/dev/ipmi/ipmi.c +++ b/sys/dev/ipmi/ipmi.c @@ -1060,8 +1060,6 @@ ipmi_release_resources(device_t dev) sc->ipmi_io_rid + i, sc->ipmi_io_res[i]); } -devclass_t ipmi_devclass; - /* XXX: Why? */ static void ipmi_unload(void *arg) diff --git a/sys/dev/ipmi/ipmi_acpi.c b/sys/dev/ipmi/ipmi_acpi.c index 7c34f49075af..f3745375c15c 100644 --- a/sys/dev/ipmi/ipmi_acpi.c +++ b/sys/dev/ipmi/ipmi_acpi.c @@ -210,5 +210,5 @@ static driver_t ipmi_acpi_driver = { sizeof(struct ipmi_softc), }; -DRIVER_MODULE(ipmi_acpi, acpi, ipmi_acpi_driver, ipmi_devclass, 0, 0); +DRIVER_MODULE(ipmi_acpi, acpi, ipmi_acpi_driver, 0, 0); MODULE_DEPEND(ipmi_acpi, acpi, 1, 1, 1); diff --git a/sys/dev/ipmi/ipmi_isa.c b/sys/dev/ipmi/ipmi_isa.c index 1123f2849905..677a723b8b6d 100644 --- a/sys/dev/ipmi/ipmi_isa.c +++ b/sys/dev/ipmi/ipmi_isa.c @@ -286,7 +286,7 @@ static driver_t ipmi_isa_driver = { sizeof(struct ipmi_softc), }; -DRIVER_MODULE(ipmi_isa, isa, ipmi_isa_driver, ipmi_devclass, 0, 0); +DRIVER_MODULE(ipmi_isa, isa, ipmi_isa_driver, 0, 0); #ifdef ARCH_MAY_USE_EFI MODULE_DEPEND(ipmi_isa, efirt, 1, 1, 1); #endif diff --git a/sys/dev/ipmi/ipmi_opal.c b/sys/dev/ipmi/ipmi_opal.c index 97f5e367b88e..7441ad70c8d3 100644 --- a/sys/dev/ipmi/ipmi_opal.c +++ b/sys/dev/ipmi/ipmi_opal.c @@ -327,4 +327,4 @@ static driver_t opal_ipmi_driver = { sizeof(struct opal_ipmi_softc) }; -DRIVER_MODULE(opal_ipmi, opal, opal_ipmi_driver, ipmi_devclass, NULL, NULL); +DRIVER_MODULE(opal_ipmi, opal, opal_ipmi_driver, NULL, NULL); diff --git a/sys/dev/ipmi/ipmi_pci.c b/sys/dev/ipmi/ipmi_pci.c index 13ac4f4b5ede..90f4eaeb0fa6 100644 --- a/sys/dev/ipmi/ipmi_pci.c +++ b/sys/dev/ipmi/ipmi_pci.c @@ -179,7 +179,7 @@ static driver_t ipmi_pci_driver = { sizeof(struct ipmi_softc) }; -DRIVER_MODULE(ipmi_pci, pci, ipmi_pci_driver, ipmi_devclass, 0, 0); +DRIVER_MODULE(ipmi_pci, pci, ipmi_pci_driver, 0, 0); /* Native IPMI on PCI driver. */ @@ -292,7 +292,7 @@ static driver_t ipmi2_pci_driver = { sizeof(struct ipmi_softc) }; -DRIVER_MODULE(ipmi2_pci, pci, ipmi2_pci_driver, ipmi_devclass, 0, 0); +DRIVER_MODULE(ipmi2_pci, pci, ipmi2_pci_driver, 0, 0); #ifdef ARCH_MAY_USE_EFI MODULE_DEPEND(ipmi2_pci, efirt, 1, 1, 1); #endif diff --git a/sys/dev/ipmi/ipmi_smbus.c b/sys/dev/ipmi/ipmi_smbus.c index 652e0ea6e665..eff4ee528612 100644 --- a/sys/dev/ipmi/ipmi_smbus.c +++ b/sys/dev/ipmi/ipmi_smbus.c @@ -130,7 +130,7 @@ static driver_t ipmi_smbus_driver = { sizeof(struct ipmi_softc) }; -DRIVER_MODULE(ipmi_smbus, smbus, ipmi_smbus_driver, ipmi_devclass, 0, 0); +DRIVER_MODULE(ipmi_smbus, smbus, ipmi_smbus_driver, 0, 0); MODULE_DEPEND(ipmi_smbus, smbus, SMBUS_MINVER, SMBUS_PREFVER, SMBUS_MAXVER); #ifdef ARCH_MAY_USE_EFI MODULE_DEPEND(ipmi_smbus, efirt, 1, 1, 1); diff --git a/sys/dev/ipmi/ipmivars.h b/sys/dev/ipmi/ipmivars.h index 7a1346655983..a7ab23336ff5 100644 --- a/sys/dev/ipmi/ipmivars.h +++ b/sys/dev/ipmi/ipmivars.h @@ -255,7 +255,6 @@ int ipmi_ssif_attach(struct ipmi_softc *, device_t, int); int ipmi_handle_attn(struct ipmi_softc *); #endif -extern devclass_t ipmi_devclass; extern int ipmi_attached; #endif /* !__IPMIVARS_H__ */