git: 8984411b8a7c - main - firewire: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 19:22:49 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=8984411b8a7ce364ad475a41d20e7208c04e02b7
commit 8984411b8a7ce364ad475a41d20e7208c04e02b7
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-09 19:22:01 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-09 19:22:01 +0000
firewire: Remove unused devclass arguments to DRIVER_MODULE.
---
sys/dev/firewire/fwohci_pci.c | 4 +---
sys/dev/firewire/if_fwe.c | 4 +---
sys/dev/firewire/if_fwip.c | 4 +---
sys/dev/firewire/sbp.c | 4 +---
sys/dev/firewire/sbp_targ.c | 4 +---
5 files changed, 5 insertions(+), 15 deletions(-)
diff --git a/sys/dev/firewire/fwohci_pci.c b/sys/dev/firewire/fwohci_pci.c
index 595a9d402983..a66a614921e4 100644
--- a/sys/dev/firewire/fwohci_pci.c
+++ b/sys/dev/firewire/fwohci_pci.c
@@ -466,9 +466,7 @@ static driver_t fwohci_driver = {
sizeof(fwohci_softc_t),
};
-static devclass_t fwohci_devclass;
-
#ifdef FWOHCI_MODULE
MODULE_DEPEND(fwohci, firewire, 1, 1, 1);
#endif
-DRIVER_MODULE(fwohci, pci, fwohci_driver, fwohci_devclass, 0, 0);
+DRIVER_MODULE(fwohci, pci, fwohci_driver, 0, 0);
diff --git a/sys/dev/firewire/if_fwe.c b/sys/dev/firewire/if_fwe.c
index 657fd6515fca..c57e3a4c3d7e 100644
--- a/sys/dev/firewire/if_fwe.c
+++ b/sys/dev/firewire/if_fwe.c
@@ -613,8 +613,6 @@ fwe_as_input(struct fw_xferq *xferq)
}
-static devclass_t fwe_devclass;
-
static device_method_t fwe_methods[] = {
/* device interface */
DEVMETHOD(device_identify, fwe_identify),
@@ -631,6 +629,6 @@ static driver_t fwe_driver = {
};
-DRIVER_MODULE(fwe, firewire, fwe_driver, fwe_devclass, 0, 0);
+DRIVER_MODULE(fwe, firewire, fwe_driver, 0, 0);
MODULE_VERSION(fwe, 1);
MODULE_DEPEND(fwe, firewire, 1, 1, 1);
diff --git a/sys/dev/firewire/if_fwip.c b/sys/dev/firewire/if_fwip.c
index e45fd67baea7..aaba63e818a1 100644
--- a/sys/dev/firewire/if_fwip.c
+++ b/sys/dev/firewire/if_fwip.c
@@ -917,8 +917,6 @@ done:
NET_EPOCH_EXIT(et);
}
-static devclass_t fwip_devclass;
-
static device_method_t fwip_methods[] = {
/* device interface */
DEVMETHOD(device_identify, fwip_identify),
@@ -935,6 +933,6 @@ static driver_t fwip_driver = {
};
-DRIVER_MODULE(fwip, firewire, fwip_driver, fwip_devclass, 0, 0);
+DRIVER_MODULE(fwip, firewire, fwip_driver, 0, 0);
MODULE_VERSION(fwip, 1);
MODULE_DEPEND(fwip, firewire, 1, 1, 1);
diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c
index 877c39a901a6..a2e2d08eb796 100644
--- a/sys/dev/firewire/sbp.c
+++ b/sys/dev/firewire/sbp.c
@@ -2829,8 +2829,6 @@ sbp_abort_all_ocbs(struct sbp_dev *sdev, int status)
}
}
-static devclass_t sbp_devclass;
-
static device_method_t sbp_methods[] = {
/* device interface */
DEVMETHOD(device_identify, sbp_identify),
@@ -2847,7 +2845,7 @@ static driver_t sbp_driver = {
sbp_methods,
sizeof(struct sbp_softc),
};
-DRIVER_MODULE(sbp, firewire, sbp_driver, sbp_devclass, 0, 0);
+DRIVER_MODULE(sbp, firewire, sbp_driver, 0, 0);
MODULE_VERSION(sbp, 1);
MODULE_DEPEND(sbp, firewire, 1, 1, 1);
MODULE_DEPEND(sbp, cam, 1, 1, 1);
diff --git a/sys/dev/firewire/sbp_targ.c b/sys/dev/firewire/sbp_targ.c
index 1832703818ff..d10c894855b9 100644
--- a/sys/dev/firewire/sbp_targ.c
+++ b/sys/dev/firewire/sbp_targ.c
@@ -2032,8 +2032,6 @@ sbp_targ_detach(device_t dev)
return 0;
}
-static devclass_t sbp_targ_devclass;
-
static device_method_t sbp_targ_methods[] = {
/* device interface */
DEVMETHOD(device_identify, sbp_targ_identify),
@@ -2049,7 +2047,7 @@ static driver_t sbp_targ_driver = {
sizeof(struct sbp_targ_softc),
};
-DRIVER_MODULE(sbp_targ, firewire, sbp_targ_driver, sbp_targ_devclass, 0, 0);
+DRIVER_MODULE(sbp_targ, firewire, sbp_targ_driver, 0, 0);
MODULE_VERSION(sbp_targ, 1);
MODULE_DEPEND(sbp_targ, firewire, 1, 1, 1);
MODULE_DEPEND(sbp_targ, cam, 1, 1, 1);