git: 90b8b22435cd - main - xilinx: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 May 2022 17:36:09 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=90b8b22435cdbad64227e646f4e315a2db8fb99a commit 90b8b22435cdbad64227e646f4e315a2db8fb99a Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-10 17:21:37 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-10 17:21:37 +0000 xilinx: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/xilinx/axi_quad_spi.c | 4 +--- sys/dev/xilinx/axidma.c | 4 +--- sys/dev/xilinx/if_xae.c | 4 +--- sys/dev/xilinx/xlnx_pcib.c | 8 ++------ 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/sys/dev/xilinx/axi_quad_spi.c b/sys/dev/xilinx/axi_quad_spi.c index e18be94a59c0..dbc57f368ce7 100644 --- a/sys/dev/xilinx/axi_quad_spi.c +++ b/sys/dev/xilinx/axi_quad_spi.c @@ -230,6 +230,4 @@ static driver_t spi_driver = { sizeof(struct spi_softc), }; -static devclass_t spi_devclass; - -DRIVER_MODULE(spi, simplebus, spi_driver, spi_devclass, 0, 0); +DRIVER_MODULE(spi, simplebus, spi_driver, 0, 0); diff --git a/sys/dev/xilinx/axidma.c b/sys/dev/xilinx/axidma.c index be3fcf17d20e..ec2d9284cbbc 100644 --- a/sys/dev/xilinx/axidma.c +++ b/sys/dev/xilinx/axidma.c @@ -632,7 +632,5 @@ static driver_t axidma_driver = { sizeof(struct axidma_softc), }; -static devclass_t axidma_devclass; - -EARLY_DRIVER_MODULE(axidma, simplebus, axidma_driver, axidma_devclass, 0, 0, +EARLY_DRIVER_MODULE(axidma, simplebus, axidma_driver, 0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE); diff --git a/sys/dev/xilinx/if_xae.c b/sys/dev/xilinx/if_xae.c index 4f02e0950ee4..5b61d19b6f0a 100644 --- a/sys/dev/xilinx/if_xae.c +++ b/sys/dev/xilinx/if_xae.c @@ -1146,9 +1146,7 @@ driver_t xae_driver = { sizeof(struct xae_softc), }; -static devclass_t xae_devclass; - -DRIVER_MODULE(xae, simplebus, xae_driver, xae_devclass, 0, 0); +DRIVER_MODULE(xae, simplebus, xae_driver, 0, 0); DRIVER_MODULE(miibus, xae, miibus_driver, 0, 0); MODULE_DEPEND(xae, ether, 1, 1, 1); diff --git a/sys/dev/xilinx/xlnx_pcib.c b/sys/dev/xilinx/xlnx_pcib.c index 0e60786e6320..50865d525267 100644 --- a/sys/dev/xilinx/xlnx_pcib.c +++ b/sys/dev/xilinx/xlnx_pcib.c @@ -785,9 +785,5 @@ static device_method_t xlnx_pcib_fdt_methods[] = { DEFINE_CLASS_1(pcib, xlnx_pcib_fdt_driver, xlnx_pcib_fdt_methods, sizeof(struct xlnx_pcib_softc), generic_pcie_fdt_driver); -static devclass_t xlnx_pcib_fdt_devclass; - -DRIVER_MODULE(xlnx_pcib, simplebus, xlnx_pcib_fdt_driver, - xlnx_pcib_fdt_devclass, 0, 0); -DRIVER_MODULE(xlnx_pcib, ofwbus, xlnx_pcib_fdt_driver, - xlnx_pcib_fdt_devclass, 0, 0); +DRIVER_MODULE(xlnx_pcib, simplebus, xlnx_pcib_fdt_driver, 0, 0); +DRIVER_MODULE(xlnx_pcib, ofwbus, xlnx_pcib_fdt_driver, 0, 0);