Date: Fri, 6 May 2022 23:24: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: 8f35a52d396f - main - sdhci: Remove unused devclass arguments to DRIVER_MODULE. Message-ID: <202205062324.246NOkdr074980@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=8f35a52d396fbc4984dd22c80569ca5351ada8c4 commit 8f35a52d396fbc4984dd22c80569ca5351ada8c4 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-06 22:46:56 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-06 22:46:56 +0000 sdhci: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/sdhci/fsl_sdhci.c | 5 +---- sys/dev/sdhci/sdhci_acpi.c | 4 +--- sys/dev/sdhci/sdhci_fdt.c | 4 +--- sys/dev/sdhci/sdhci_fsl_fdt.c | 4 +--- sys/dev/sdhci/sdhci_pci.c | 4 +--- sys/dev/sdhci/sdhci_xenon_acpi.c | 5 +---- sys/dev/sdhci/sdhci_xenon_fdt.c | 5 +---- 7 files changed, 7 insertions(+), 24 deletions(-) diff --git a/sys/dev/sdhci/fsl_sdhci.c b/sys/dev/sdhci/fsl_sdhci.c index e8759be95699..2694c130564b 100644 --- a/sys/dev/sdhci/fsl_sdhci.c +++ b/sys/dev/sdhci/fsl_sdhci.c @@ -990,16 +990,13 @@ static device_method_t fsl_sdhci_methods[] = { DEVMETHOD_END }; -static devclass_t fsl_sdhci_devclass; - static driver_t fsl_sdhci_driver = { "sdhci_fsl", fsl_sdhci_methods, sizeof(struct fsl_sdhci_softc), }; -DRIVER_MODULE(sdhci_fsl, simplebus, fsl_sdhci_driver, fsl_sdhci_devclass, - NULL, NULL); +DRIVER_MODULE(sdhci_fsl, simplebus, fsl_sdhci_driver, NULL, NULL); SDHCI_DEPEND(sdhci_fsl); #ifndef MMCCAM diff --git a/sys/dev/sdhci/sdhci_acpi.c b/sys/dev/sdhci/sdhci_acpi.c index f7fbd3fdaf3f..179642451204 100644 --- a/sys/dev/sdhci/sdhci_acpi.c +++ b/sys/dev/sdhci/sdhci_acpi.c @@ -453,10 +453,8 @@ static driver_t sdhci_acpi_driver = { sdhci_methods, sizeof(struct sdhci_acpi_softc), }; -static devclass_t sdhci_acpi_devclass; -DRIVER_MODULE(sdhci_acpi, acpi, sdhci_acpi_driver, sdhci_acpi_devclass, NULL, - NULL); +DRIVER_MODULE(sdhci_acpi, acpi, sdhci_acpi_driver, NULL, NULL); SDHCI_DEPEND(sdhci_acpi); #ifndef MMCCAM diff --git a/sys/dev/sdhci/sdhci_fdt.c b/sys/dev/sdhci/sdhci_fdt.c index 51b009a411c8..f7e6eb27d180 100644 --- a/sys/dev/sdhci/sdhci_fdt.c +++ b/sys/dev/sdhci/sdhci_fdt.c @@ -586,10 +586,8 @@ static driver_t sdhci_fdt_driver = { sdhci_fdt_methods, sizeof(struct sdhci_fdt_softc), }; -static devclass_t sdhci_fdt_devclass; -DRIVER_MODULE(sdhci_fdt, simplebus, sdhci_fdt_driver, sdhci_fdt_devclass, - NULL, NULL); +DRIVER_MODULE(sdhci_fdt, simplebus, sdhci_fdt_driver, NULL, NULL); SDHCI_DEPEND(sdhci_fdt); #ifndef MMCCAM MMC_DECLARE_BRIDGE(sdhci_fdt); diff --git a/sys/dev/sdhci/sdhci_fsl_fdt.c b/sys/dev/sdhci/sdhci_fsl_fdt.c index 31ff858c7a14..470cbd169303 100644 --- a/sys/dev/sdhci/sdhci_fsl_fdt.c +++ b/sys/dev/sdhci/sdhci_fsl_fdt.c @@ -1562,15 +1562,13 @@ static const device_method_t sdhci_fsl_fdt_methods[] = { DEVMETHOD_END }; -static devclass_t sdhci_fsl_fdt_devclass; static driver_t sdhci_fsl_fdt_driver = { "sdhci_fsl_fdt", sdhci_fsl_fdt_methods, sizeof(struct sdhci_fsl_fdt_softc), }; -DRIVER_MODULE(sdhci_fsl_fdt, simplebus, sdhci_fsl_fdt_driver, - sdhci_fsl_fdt_devclass, NULL, NULL); +DRIVER_MODULE(sdhci_fsl_fdt, simplebus, sdhci_fsl_fdt_driver, NULL, NULL); SDHCI_DEPEND(sdhci_fsl_fdt); #ifndef MMCCAM diff --git a/sys/dev/sdhci/sdhci_pci.c b/sys/dev/sdhci/sdhci_pci.c index 5d22a819410c..fee99646c6b4 100644 --- a/sys/dev/sdhci/sdhci_pci.c +++ b/sys/dev/sdhci/sdhci_pci.c @@ -525,10 +525,8 @@ static driver_t sdhci_pci_driver = { sdhci_methods, sizeof(struct sdhci_pci_softc), }; -static devclass_t sdhci_pci_devclass; -DRIVER_MODULE(sdhci_pci, pci, sdhci_pci_driver, sdhci_pci_devclass, NULL, - NULL); +DRIVER_MODULE(sdhci_pci, pci, sdhci_pci_driver, NULL, NULL); SDHCI_DEPEND(sdhci_pci); #ifndef MMCCAM diff --git a/sys/dev/sdhci/sdhci_xenon_acpi.c b/sys/dev/sdhci/sdhci_xenon_acpi.c index 9bb781ff75a6..920d69084aa3 100644 --- a/sys/dev/sdhci/sdhci_xenon_acpi.c +++ b/sys/dev/sdhci/sdhci_xenon_acpi.c @@ -128,10 +128,7 @@ static device_method_t sdhci_xenon_acpi_methods[] = { DEFINE_CLASS_1(sdhci_xenon, sdhci_xenon_acpi_driver, sdhci_xenon_acpi_methods, sizeof(struct sdhci_xenon_softc), sdhci_xenon_driver); -static devclass_t sdhci_xenon_acpi_devclass; - -DRIVER_MODULE(sdhci_xenon, acpi, sdhci_xenon_acpi_driver, - sdhci_xenon_acpi_devclass, NULL, NULL); +DRIVER_MODULE(sdhci_xenon, acpi, sdhci_xenon_acpi_driver, NULL, NULL); #ifndef MMCCAM MMC_DECLARE_BRIDGE(sdhci_xenon_acpi); diff --git a/sys/dev/sdhci/sdhci_xenon_fdt.c b/sys/dev/sdhci/sdhci_xenon_fdt.c index 2d96105bd7e9..96949cd32bf7 100644 --- a/sys/dev/sdhci/sdhci_xenon_fdt.c +++ b/sys/dev/sdhci/sdhci_xenon_fdt.c @@ -163,10 +163,7 @@ static device_method_t sdhci_xenon_fdt_methods[] = { DEFINE_CLASS_1(sdhci_xenon, sdhci_xenon_fdt_driver, sdhci_xenon_fdt_methods, sizeof(struct sdhci_xenon_softc), sdhci_xenon_driver); -static devclass_t sdhci_xenon_fdt_devclass; - -DRIVER_MODULE(sdhci_xenon, simplebus, sdhci_xenon_fdt_driver, - sdhci_xenon_fdt_devclass, NULL, NULL); +DRIVER_MODULE(sdhci_xenon, simplebus, sdhci_xenon_fdt_driver, NULL, NULL); #ifndef MMCCAM MMC_DECLARE_BRIDGE(sdhci_xenon_fdt);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205062324.246NOkdr074980>