Date: Tue, 10 May 2022 17:36:46 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 53e1cbefe4b8 - main - qcom_*: Remove unused devclass arguments to DRIVER_MODULE. Message-ID: <202205101736.24AHakp7099531@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=53e1cbefe4b81e6ecdad529fcd252600f838cf69 commit 53e1cbefe4b81e6ecdad529fcd252600f838cf69 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-10 17:21:39 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-10 17:21:39 +0000 qcom_*: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/qcom_dwc3/qcom_dwc3.c | 5 +---- sys/dev/qcom_gcc/qcom_gcc_ipq4018.c | 7 ++----- sys/dev/qcom_mdio/qcom_mdio_ipq4018.c | 4 +--- sys/dev/qcom_qup/qcom_spi.c | 4 +--- sys/dev/qcom_rnd/qcom_rnd.c | 5 ++--- sys/dev/qcom_tcsr/qcom_tcsr.c | 5 +---- sys/dev/qcom_tlmm/qcom_tlmm_ipq4018.c | 6 ++---- 7 files changed, 10 insertions(+), 26 deletions(-) diff --git a/sys/dev/qcom_dwc3/qcom_dwc3.c b/sys/dev/qcom_dwc3/qcom_dwc3.c index b027bc609453..103317585073 100644 --- a/sys/dev/qcom_dwc3/qcom_dwc3.c +++ b/sys/dev/qcom_dwc3/qcom_dwc3.c @@ -172,9 +172,6 @@ static device_method_t qcom_dwc3_methods[] = { DEVMETHOD_END }; -static devclass_t qcom_dwc3_devclass; - DEFINE_CLASS_1(qcom_dwc3, qcom_dwc3_driver, qcom_dwc3_methods, sizeof(struct qcom_dwc3_softc), simplebus_driver); -DRIVER_MODULE(qcom_dwc3, simplebus, qcom_dwc3_driver, qcom_dwc3_devclass, - 0, 0); +DRIVER_MODULE(qcom_dwc3, simplebus, qcom_dwc3_driver, 0, 0); diff --git a/sys/dev/qcom_gcc/qcom_gcc_ipq4018.c b/sys/dev/qcom_gcc/qcom_gcc_ipq4018.c index 12bd721c1e29..1f36897c0c89 100644 --- a/sys/dev/qcom_gcc/qcom_gcc_ipq4018.c +++ b/sys/dev/qcom_gcc/qcom_gcc_ipq4018.c @@ -173,12 +173,9 @@ static driver_t qcom_gcc_ipq4018_driver = { qcom_gcc_ipq4018_methods, sizeof(struct qcom_gcc_ipq4018_softc) }; -static devclass_t qcom_gcc_ipq4018_devclass; EARLY_DRIVER_MODULE(qcom_gcc_ipq4018, simplebus, qcom_gcc_ipq4018_driver, - qcom_gcc_ipq4018_devclass, qcom_gcc_ipq4018_modevent, 0, - BUS_PASS_CPU + BUS_PASS_ORDER_EARLY); + qcom_gcc_ipq4018_modevent, NULL, BUS_PASS_CPU + BUS_PASS_ORDER_EARLY); EARLY_DRIVER_MODULE(qcom_gcc_ipq4018, ofwbus, qcom_gcc_ipq4018_driver, - qcom_gcc_ipq4018_devclass, qcom_gcc_ipq4018_modevent, 0, - BUS_PASS_CPU + BUS_PASS_ORDER_EARLY); + qcom_gcc_ipq4018_modevent, NULL, BUS_PASS_CPU + BUS_PASS_ORDER_EARLY); MODULE_VERSION(qcom_gcc_ipq4018, 1); diff --git a/sys/dev/qcom_mdio/qcom_mdio_ipq4018.c b/sys/dev/qcom_mdio/qcom_mdio_ipq4018.c index 031c454a27f6..2cfb7712be25 100644 --- a/sys/dev/qcom_mdio/qcom_mdio_ipq4018.c +++ b/sys/dev/qcom_mdio/qcom_mdio_ipq4018.c @@ -285,11 +285,9 @@ static driver_t qcom_mdio_ipq4018_driver = { qcom_mdio_ipq4018_methods, sizeof(struct qcom_mdio_ipq4018_softc), }; -static devclass_t qcom_mdio_ipq4018_devclass; EARLY_DRIVER_MODULE(qcom_mdio_ipq4018, simplebus, qcom_mdio_ipq4018_driver, - qcom_mdio_ipq4018_devclass, NULL, 0, - BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_LATE); + NULL, NULL, BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_LATE); MODULE_DEPEND(qcom_mdio_ipq4018, ether, 1, 1, 1); MODULE_DEPEND(qcom_mdio_ipq4018, mdio, 1, 1, 1); diff --git a/sys/dev/qcom_qup/qcom_spi.c b/sys/dev/qcom_qup/qcom_spi.c index 706bef242043..5e7aaf8b181b 100644 --- a/sys/dev/qcom_qup/qcom_spi.c +++ b/sys/dev/qcom_qup/qcom_spi.c @@ -902,9 +902,7 @@ static driver_t qcom_spi_driver = { sizeof(struct qcom_spi_softc), }; -static devclass_t qcom_spi_devclass; - -DRIVER_MODULE(qcom_spi, simplebus, qcom_spi_driver, qcom_spi_devclass, 0, 0); +DRIVER_MODULE(qcom_spi, simplebus, qcom_spi_driver, 0, 0); DRIVER_MODULE(ofw_spibus, qcom_spi, ofw_spibus_driver, 0, 0); MODULE_DEPEND(qcom_spi, ofw_spibus, 1, 1, 1); SIMPLEBUS_PNP_INFO(compat_data); diff --git a/sys/dev/qcom_rnd/qcom_rnd.c b/sys/dev/qcom_rnd/qcom_rnd.c index c78438a29ba0..737c00607d31 100644 --- a/sys/dev/qcom_rnd/qcom_rnd.c +++ b/sys/dev/qcom_rnd/qcom_rnd.c @@ -247,11 +247,10 @@ static driver_t qcom_rnd_driver = { qcom_rnd_methods, sizeof(struct qcom_rnd_softc) }; -static devclass_t qcom_rnd_devclass; -DRIVER_MODULE(qcom_rnd_random, simplebus, qcom_rnd_driver, qcom_rnd_devclass, +DRIVER_MODULE(qcom_rnd_random, simplebus, qcom_rnd_driver, qcom_rnd_modevent, 0); -DRIVER_MODULE(qcom_rnd_random, ofwbus, qcom_rnd_driver, qcom_rnd_devclass, +DRIVER_MODULE(qcom_rnd_random, ofwbus, qcom_rnd_driver, qcom_rnd_modevent, 0); MODULE_DEPEND(qcom_rnd_random, random_device, 1, 1, 1); MODULE_VERSION(qcom_rnd_random, 1); diff --git a/sys/dev/qcom_tcsr/qcom_tcsr.c b/sys/dev/qcom_tcsr/qcom_tcsr.c index 35d7c4436b1c..0b11fdc35368 100644 --- a/sys/dev/qcom_tcsr/qcom_tcsr.c +++ b/sys/dev/qcom_tcsr/qcom_tcsr.c @@ -228,13 +228,10 @@ static driver_t qcom_tcsr_driver = { sizeof(struct qcom_tcsr_softc), }; -static devclass_t qcom_tcsr_devclass; - /* * This has to be run early, before the rest of the hardware is potentially * probed/attached. */ -EARLY_DRIVER_MODULE(qcom_tcsr, simplebus, qcom_tcsr_driver, - qcom_tcsr_devclass, 0, 0, +EARLY_DRIVER_MODULE(qcom_tcsr, simplebus, qcom_tcsr_driver, 0, 0, BUS_PASS_CPU + BUS_PASS_ORDER_EARLY); SIMPLEBUS_PNP_INFO(compat_data); diff --git a/sys/dev/qcom_tlmm/qcom_tlmm_ipq4018.c b/sys/dev/qcom_tlmm/qcom_tlmm_ipq4018.c index a1aec5eb7303..f4d9144cf087 100644 --- a/sys/dev/qcom_tlmm/qcom_tlmm_ipq4018.c +++ b/sys/dev/qcom_tlmm/qcom_tlmm_ipq4018.c @@ -390,11 +390,9 @@ static driver_t qcom_tlmm_ipq4018_driver = { qcom_tlmm_ipq4018_methods, sizeof(struct qcom_tlmm_softc), }; -static devclass_t qcom_tlmm_ipq4018_devclass; - EARLY_DRIVER_MODULE(qcom_tlmm_ipq4018, simplebus, qcom_tlmm_ipq4018_driver, - qcom_tlmm_ipq4018_devclass, NULL, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE); + NULL, NULL, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE); EARLY_DRIVER_MODULE(qcom_tlmm_ipq4018, ofwbus, qcom_tlmm_ipq4018_driver, - qcom_tlmm_ipq4018_devclass, NULL, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE); + NULL, NULL, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE); MODULE_VERSION(qcom_tlmm_ipq4018, 1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205101736.24AHakp7099531>