git: 4e9e71fd2adb - main - ichiic: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 19:22:55 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=4e9e71fd2adb0597411700803de061be7ace213c commit 4e9e71fd2adb0597411700803de061be7ace213c 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 ichiic: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/ichiic/ig4_acpi.c | 3 +-- sys/dev/ichiic/ig4_iic.c | 2 -- sys/dev/ichiic/ig4_pci.c | 3 +-- sys/dev/ichiic/ig4_var.h | 2 -- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/sys/dev/ichiic/ig4_acpi.c b/sys/dev/ichiic/ig4_acpi.c index 5f596d8bfcab..7d6fa386838a 100644 --- a/sys/dev/ichiic/ig4_acpi.c +++ b/sys/dev/ichiic/ig4_acpi.c @@ -190,7 +190,6 @@ static driver_t ig4iic_acpi_driver = { sizeof(struct ig4iic_softc), }; -DRIVER_MODULE_ORDERED(ig4iic, acpi, ig4iic_acpi_driver, ig4iic_devclass, 0, 0, - SI_ORDER_ANY); +DRIVER_MODULE_ORDERED(ig4iic, acpi, ig4iic_acpi_driver, 0, 0, SI_ORDER_ANY); MODULE_DEPEND(ig4iic, acpi, 1, 1, 1); ACPI_PNP_INFO(ig4iic_ids); diff --git a/sys/dev/ichiic/ig4_iic.c b/sys/dev/ichiic/ig4_iic.c index c181d617bf48..7353a6fae844 100644 --- a/sys/dev/ichiic/ig4_iic.c +++ b/sys/dev/ichiic/ig4_iic.c @@ -1210,8 +1210,6 @@ ig4iic_dump(ig4iic_softc_t *sc) } #undef REGDUMP -devclass_t ig4iic_devclass; - DRIVER_MODULE(iicbus, ig4iic, iicbus_driver, NULL, NULL); #ifdef DEV_ACPI DRIVER_MODULE(acpi_iicbus, ig4iic, acpi_iicbus_driver, NULL, NULL); diff --git a/sys/dev/ichiic/ig4_pci.c b/sys/dev/ichiic/ig4_pci.c index 71b95c3d95fb..2316e0cac1d0 100644 --- a/sys/dev/ichiic/ig4_pci.c +++ b/sys/dev/ichiic/ig4_pci.c @@ -401,8 +401,7 @@ static driver_t ig4iic_pci_driver = { sizeof(struct ig4iic_softc) }; -DRIVER_MODULE_ORDERED(ig4iic, pci, ig4iic_pci_driver, ig4iic_devclass, 0, 0, - SI_ORDER_ANY); +DRIVER_MODULE_ORDERED(ig4iic, pci, ig4iic_pci_driver, 0, 0, SI_ORDER_ANY); MODULE_DEPEND(ig4iic, pci, 1, 1, 1); MODULE_PNP_INFO("W32:vendor/device", pci, ig4iic, ig4iic_pci_devices, nitems(ig4iic_pci_devices)); diff --git a/sys/dev/ichiic/ig4_var.h b/sys/dev/ichiic/ig4_var.h index da81980039f1..608c925df38e 100644 --- a/sys/dev/ichiic/ig4_var.h +++ b/sys/dev/ichiic/ig4_var.h @@ -114,8 +114,6 @@ struct ig4iic_softc { typedef struct ig4iic_softc ig4iic_softc_t; -extern devclass_t ig4iic_devclass; - /* Attach/Detach called from ig4iic_pci_*() */ int ig4iic_attach(ig4iic_softc_t *sc); int ig4iic_detach(ig4iic_softc_t *sc);