git: d99a98d54fd5 - main - arm64 cavium: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 21:47:57 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=d99a98d54fd53c009f416e63cb8ddd7f162427c7
commit d99a98d54fd53c009f416e63cb8ddd7f162427c7
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 cavium: Remove unused devclass arguments to DRIVER_MODULE.
---
sys/arm64/cavium/thunder_pcie_fdt.c | 8 ++------
sys/arm64/cavium/thunder_pcie_pem.c | 3 +--
sys/arm64/cavium/thunder_pcie_pem_fdt.c | 8 ++------
3 files changed, 5 insertions(+), 14 deletions(-)
diff --git a/sys/arm64/cavium/thunder_pcie_fdt.c b/sys/arm64/cavium/thunder_pcie_fdt.c
index b89b4e345d31..c0876b1a19bd 100644
--- a/sys/arm64/cavium/thunder_pcie_fdt.c
+++ b/sys/arm64/cavium/thunder_pcie_fdt.c
@@ -103,12 +103,8 @@ static device_method_t thunder_pcie_fdt_methods[] = {
DEFINE_CLASS_1(pcib, thunder_pcie_fdt_driver, thunder_pcie_fdt_methods,
sizeof(struct generic_pcie_fdt_softc), generic_pcie_fdt_driver);
-static devclass_t thunder_pcie_fdt_devclass;
-
-DRIVER_MODULE(thunder_pcib, simplebus, thunder_pcie_fdt_driver,
- thunder_pcie_fdt_devclass, 0, 0);
-DRIVER_MODULE(thunder_pcib, ofwbus, thunder_pcie_fdt_driver,
- thunder_pcie_fdt_devclass, 0, 0);
+DRIVER_MODULE(thunder_pcib, simplebus, thunder_pcie_fdt_driver, 0, 0);
+DRIVER_MODULE(thunder_pcib, ofwbus, thunder_pcie_fdt_driver, 0, 0);
static const struct ofw_bus_devinfo *
thunder_pcie_ofw_get_devinfo(device_t bus __unused, device_t child)
diff --git a/sys/arm64/cavium/thunder_pcie_pem.c b/sys/arm64/cavium/thunder_pcie_pem.c
index 45d9880571b0..cbc70d7862de 100644
--- a/sys/arm64/cavium/thunder_pcie_pem.c
+++ b/sys/arm64/cavium/thunder_pcie_pem.c
@@ -195,10 +195,9 @@ static device_method_t thunder_pem_methods[] = {
DEFINE_CLASS_0(pcib, thunder_pem_driver, thunder_pem_methods,
sizeof(struct thunder_pem_softc));
-static devclass_t thunder_pem_devclass;
extern struct bus_space memmap_bus;
-DRIVER_MODULE(thunder_pem, pci, thunder_pem_driver, thunder_pem_devclass, 0, 0);
+DRIVER_MODULE(thunder_pem, pci, thunder_pem_driver, 0, 0);
MODULE_DEPEND(thunder_pem, pci, 1, 1, 1);
static int
diff --git a/sys/arm64/cavium/thunder_pcie_pem_fdt.c b/sys/arm64/cavium/thunder_pcie_pem_fdt.c
index a605b3c56efd..b5deaa226926 100644
--- a/sys/arm64/cavium/thunder_pcie_pem_fdt.c
+++ b/sys/arm64/cavium/thunder_pcie_pem_fdt.c
@@ -87,12 +87,8 @@ static device_method_t thunder_pem_fdt_methods[] = {
DEFINE_CLASS_1(pcib, thunder_pem_fdt_driver, thunder_pem_fdt_methods,
sizeof(struct thunder_pem_softc), thunder_pem_driver);
-static devclass_t thunder_pem_fdt_devclass;
-
-DRIVER_MODULE(thunder_pem, simplebus, thunder_pem_fdt_driver,
- thunder_pem_fdt_devclass, 0, 0);
-DRIVER_MODULE(thunder_pem, ofwbus, thunder_pem_fdt_driver,
- thunder_pem_fdt_devclass, 0, 0);
+DRIVER_MODULE(thunder_pem, simplebus, thunder_pem_fdt_driver, 0, 0);
+DRIVER_MODULE(thunder_pem, ofwbus, thunder_pem_fdt_driver, 0, 0);
static int
thunder_pem_fdt_probe(device_t dev)