git: d78270427823 - main - arm64 qoriq: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 21:48:00 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d782704278233a39de7d9923dc280f8c2327b4d5 commit d782704278233a39de7d9923dc280f8c2327b4d5 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 arm64 qoriq: Remove unused devclass arguments to DRIVER_MODULE. --- sys/arm64/qoriq/clk/ls1028a_clkgen.c | 6 ++---- sys/arm64/qoriq/clk/ls1028a_flexspi_clk.c | 3 +-- sys/arm64/qoriq/clk/ls1046a_clkgen.c | 6 ++---- sys/arm64/qoriq/clk/lx2160a_clkgen.c | 6 ++---- sys/arm64/qoriq/qoriq_dw_pci.c | 4 +--- sys/arm64/qoriq/qoriq_gpio_pic.c | 5 +---- sys/arm64/qoriq/qoriq_therm.c | 4 +--- 7 files changed, 10 insertions(+), 24 deletions(-) diff --git a/sys/arm64/qoriq/clk/ls1028a_clkgen.c b/sys/arm64/qoriq/clk/ls1028a_clkgen.c index 2ed84b07de3c..a1d3573ff00f 100644 --- a/sys/arm64/qoriq/clk/ls1028a_clkgen.c +++ b/sys/arm64/qoriq/clk/ls1028a_clkgen.c @@ -266,10 +266,8 @@ static device_method_t ls1028a_clkgen_methods[] = { DEFINE_CLASS_1(ls1028a_clkgen, ls1028a_clkgen_driver, ls1028a_clkgen_methods, sizeof(struct qoriq_clkgen_softc), qoriq_clkgen_driver); -static devclass_t ls1028a_clkgen_devclass; - -EARLY_DRIVER_MODULE(ls1028a_clkgen, simplebus, ls1028a_clkgen_driver, - ls1028a_clkgen_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); +EARLY_DRIVER_MODULE(ls1028a_clkgen, simplebus, ls1028a_clkgen_driver, 0, 0, + BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); static int ls1028a_clkgen_probe(device_t dev) diff --git a/sys/arm64/qoriq/clk/ls1028a_flexspi_clk.c b/sys/arm64/qoriq/clk/ls1028a_flexspi_clk.c index 5ecefa197ad3..fb432f86046c 100644 --- a/sys/arm64/qoriq/clk/ls1028a_flexspi_clk.c +++ b/sys/arm64/qoriq/clk/ls1028a_flexspi_clk.c @@ -303,8 +303,7 @@ static device_method_t ls1028a_flexspi_clk_methods[] = { DEVMETHOD_END }; -static devclass_t ls1028a_flexspi_clk_devclass; static DEFINE_CLASS_0(fspi_clk, ls1028a_flexspi_clk_driver, ls1028a_flexspi_clk_methods, sizeof(struct ls1028a_flexspi_clk_softc)); EARLY_DRIVER_MODULE(ls1028a_flexspi_clk, simple_mfd, ls1028a_flexspi_clk_driver, - ls1028a_flexspi_clk_devclass, NULL, NULL, BUS_PASS_TIMER); + NULL, NULL, BUS_PASS_TIMER); diff --git a/sys/arm64/qoriq/clk/ls1046a_clkgen.c b/sys/arm64/qoriq/clk/ls1046a_clkgen.c index 3270201f4f3d..9b0a92716123 100644 --- a/sys/arm64/qoriq/clk/ls1046a_clkgen.c +++ b/sys/arm64/qoriq/clk/ls1046a_clkgen.c @@ -194,10 +194,8 @@ static device_method_t ls1046a_clkgen_methods[] = { DEFINE_CLASS_1(ls1046a_clkgen, ls1046a_clkgen_driver, ls1046a_clkgen_methods, sizeof(struct qoriq_clkgen_softc), qoriq_clkgen_driver); -static devclass_t ls1046a_clkgen_devclass; - -EARLY_DRIVER_MODULE(ls1046a_clkgen, simplebus, ls1046a_clkgen_driver, - ls1046a_clkgen_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); +EARLY_DRIVER_MODULE(ls1046a_clkgen, simplebus, ls1046a_clkgen_driver, 0, 0, + BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); static int ls1046a_fman_init(device_t dev) diff --git a/sys/arm64/qoriq/clk/lx2160a_clkgen.c b/sys/arm64/qoriq/clk/lx2160a_clkgen.c index 2fb7b3f283ae..5f2bfe8853bf 100644 --- a/sys/arm64/qoriq/clk/lx2160a_clkgen.c +++ b/sys/arm64/qoriq/clk/lx2160a_clkgen.c @@ -203,9 +203,7 @@ static device_method_t lx2160a_clkgen_methods[] = { DEVMETHOD_END }; -static devclass_t lx2160a_clkgen_devclass; - DEFINE_CLASS_1(lx2160a_clkgen, lx2160a_clkgen_driver, lx2160a_clkgen_methods, sizeof(struct qoriq_clkgen_softc), qoriq_clkgen_driver); -EARLY_DRIVER_MODULE(lx2160a_clkgen, simplebus, lx2160a_clkgen_driver, - lx2160a_clkgen_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); +EARLY_DRIVER_MODULE(lx2160a_clkgen, simplebus, lx2160a_clkgen_driver, 0, 0, + BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); diff --git a/sys/arm64/qoriq/qoriq_dw_pci.c b/sys/arm64/qoriq/qoriq_dw_pci.c index d052c9910a47..f06b06a3aa01 100644 --- a/sys/arm64/qoriq/qoriq_dw_pci.c +++ b/sys/arm64/qoriq/qoriq_dw_pci.c @@ -251,6 +251,4 @@ static device_method_t qorif_dw_pci_methods[] = { DEFINE_CLASS_1(pcib, qorif_dw_pci_driver, qorif_dw_pci_methods, sizeof(struct qorif_dw_pci_softc), pci_dw_driver); -static devclass_t qorif_dw_pci_devclass; -DRIVER_MODULE( qorif_dw_pci, simplebus, qorif_dw_pci_driver, qorif_dw_pci_devclass, - NULL, NULL); +DRIVER_MODULE( qorif_dw_pci, simplebus, qorif_dw_pci_driver, NULL, NULL); diff --git a/sys/arm64/qoriq/qoriq_gpio_pic.c b/sys/arm64/qoriq/qoriq_gpio_pic.c index c2f462bf7787..226b2664675d 100644 --- a/sys/arm64/qoriq/qoriq_gpio_pic.c +++ b/sys/arm64/qoriq/qoriq_gpio_pic.c @@ -430,10 +430,7 @@ static device_method_t qoriq_gpio_pic_methods[] = { DEVMETHOD_END }; -static devclass_t qoriq_gpio_pic_devclass; - DEFINE_CLASS_1(gpio, qoriq_gpio_pic_driver, qoriq_gpio_pic_methods, sizeof(struct qoriq_gpio_pic_softc), qoriq_gpio_driver); -EARLY_DRIVER_MODULE(qoriq_gpio_pic, simplebus, qoriq_gpio_pic_driver, - qoriq_gpio_pic_devclass, NULL, NULL, +EARLY_DRIVER_MODULE(qoriq_gpio_pic, simplebus, qoriq_gpio_pic_driver, NULL, NULL, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE); diff --git a/sys/arm64/qoriq/qoriq_therm.c b/sys/arm64/qoriq/qoriq_therm.c index c880e68025bf..cdac26881a13 100644 --- a/sys/arm64/qoriq/qoriq_therm.c +++ b/sys/arm64/qoriq/qoriq_therm.c @@ -400,8 +400,6 @@ static device_method_t qoriq_qoriq_therm_methods[] = { DEVMETHOD_END }; -static devclass_t qoriq_qoriq_therm_devclass; static DEFINE_CLASS_0(soctherm, qoriq_qoriq_therm_driver, qoriq_qoriq_therm_methods, sizeof(struct qoriq_therm_softc)); -DRIVER_MODULE(qoriq_soctherm, simplebus, qoriq_qoriq_therm_driver, - qoriq_qoriq_therm_devclass, NULL, NULL); +DRIVER_MODULE(qoriq_soctherm, simplebus, qoriq_qoriq_therm_driver, NULL, NULL);