git: 680ccae39072 - main - arm xilinx: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 21:47:54 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=680ccae39072d6253c48cf72d2936ac99b47aefe commit 680ccae39072d6253c48cf72d2936ac99b47aefe Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 21:26:45 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 21:26:45 +0000 arm xilinx: Remove unused devclass arguments to DRIVER_MODULE. --- sys/arm/xilinx/zy7_devcfg.c | 4 +--- sys/arm/xilinx/zy7_ehci.c | 3 +-- sys/arm/xilinx/zy7_gpio.c | 4 +--- sys/arm/xilinx/zy7_qspi.c | 3 +-- sys/arm/xilinx/zy7_slcr.c | 3 +-- sys/arm/xilinx/zy7_spi.c | 3 +-- 6 files changed, 6 insertions(+), 14 deletions(-) diff --git a/sys/arm/xilinx/zy7_devcfg.c b/sys/arm/xilinx/zy7_devcfg.c index d10cf1e31c23..d40e2a5f818e 100644 --- a/sys/arm/xilinx/zy7_devcfg.c +++ b/sys/arm/xilinx/zy7_devcfg.c @@ -843,8 +843,6 @@ static driver_t zy7_devcfg_driver = { zy7_devcfg_methods, sizeof(struct zy7_devcfg_softc), }; -static devclass_t zy7_devcfg_devclass; -DRIVER_MODULE(zy7_devcfg, simplebus, zy7_devcfg_driver, zy7_devcfg_devclass, \ - 0, 0); +DRIVER_MODULE(zy7_devcfg, simplebus, zy7_devcfg_driver, 0, 0); MODULE_DEPEND(zy7_devcfg, zy7_slcr, 1, 1, 1); diff --git a/sys/arm/xilinx/zy7_ehci.c b/sys/arm/xilinx/zy7_ehci.c index 28e4705599c7..2b72e4679d4d 100644 --- a/sys/arm/xilinx/zy7_ehci.c +++ b/sys/arm/xilinx/zy7_ehci.c @@ -365,7 +365,6 @@ static driver_t ehci_driver = { ehci_methods, sizeof(struct ehci_softc), }; -static devclass_t ehci_devclass; -DRIVER_MODULE(zy7_ehci, simplebus, ehci_driver, ehci_devclass, NULL, NULL); +DRIVER_MODULE(zy7_ehci, simplebus, ehci_driver, NULL, NULL); MODULE_DEPEND(zy7_ehci, usb, 1, 1, 1); diff --git a/sys/arm/xilinx/zy7_gpio.c b/sys/arm/xilinx/zy7_gpio.c index 3e31805f19fe..ef8ffb28127a 100644 --- a/sys/arm/xilinx/zy7_gpio.c +++ b/sys/arm/xilinx/zy7_gpio.c @@ -371,7 +371,5 @@ static driver_t zy7_gpio_driver = { zy7_gpio_methods, sizeof(struct zy7_gpio_softc), }; -static devclass_t zy7_gpio_devclass; -DRIVER_MODULE(zy7_gpio, simplebus, zy7_gpio_driver, zy7_gpio_devclass, \ - NULL, NULL); +DRIVER_MODULE(zy7_gpio, simplebus, zy7_gpio_driver, NULL, NULL); diff --git a/sys/arm/xilinx/zy7_qspi.c b/sys/arm/xilinx/zy7_qspi.c index f64e6be555a0..1915f93608ba 100644 --- a/sys/arm/xilinx/zy7_qspi.c +++ b/sys/arm/xilinx/zy7_qspi.c @@ -746,9 +746,8 @@ static driver_t zy7_qspi_driver = { zy7_qspi_methods, sizeof(struct zy7_qspi_softc), }; -static devclass_t zy7_qspi_devclass; -DRIVER_MODULE(zy7_qspi, simplebus, zy7_qspi_driver, zy7_qspi_devclass, 0, 0); +DRIVER_MODULE(zy7_qspi, simplebus, zy7_qspi_driver, 0, 0); DRIVER_MODULE(ofw_spibus, zy7_qspi, ofw_spibus_driver, 0, 0); SIMPLEBUS_PNP_INFO(compat_data); MODULE_DEPEND(zy7_qspi, ofw_spibus, 1, 1, 1); diff --git a/sys/arm/xilinx/zy7_slcr.c b/sys/arm/xilinx/zy7_slcr.c index 6651252151e2..5f065bfe474d 100644 --- a/sys/arm/xilinx/zy7_slcr.c +++ b/sys/arm/xilinx/zy7_slcr.c @@ -708,7 +708,6 @@ static driver_t zy7_slcr_driver = { zy7_slcr_methods, sizeof(struct zy7_slcr_softc), }; -static devclass_t zy7_slcr_devclass; -DRIVER_MODULE(zy7_slcr, simplebus, zy7_slcr_driver, zy7_slcr_devclass, 0, 0); +DRIVER_MODULE(zy7_slcr, simplebus, zy7_slcr_driver, 0, 0); MODULE_VERSION(zy7_slcr, 1); diff --git a/sys/arm/xilinx/zy7_spi.c b/sys/arm/xilinx/zy7_spi.c index e3d04fd1632c..187be191c793 100644 --- a/sys/arm/xilinx/zy7_spi.c +++ b/sys/arm/xilinx/zy7_spi.c @@ -588,9 +588,8 @@ static driver_t zy7_spi_driver = { zy7_spi_methods, sizeof(struct zy7_spi_softc), }; -static devclass_t zy7_spi_devclass; -DRIVER_MODULE(zy7_spi, simplebus, zy7_spi_driver, zy7_spi_devclass, 0, 0); +DRIVER_MODULE(zy7_spi, simplebus, zy7_spi_driver, 0, 0); DRIVER_MODULE(ofw_spibus, zy7_spi, ofw_spibus_driver, 0, 0); SIMPLEBUS_PNP_INFO(compat_data); MODULE_DEPEND(zy7_spi, ofw_spibus, 1, 1, 1);