git: b440e459a71a - main - extres drivers: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 21:47:39 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=b440e459a71ad8a7a6778b60966d8ef7cdf95c99
commit b440e459a71ad8a7a6778b60966d8ef7cdf95c99
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-09 21:26:44 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-09 21:26:44 +0000
extres drivers: Remove unused devclass arguments to DRIVER_MODULE.
---
sys/dev/extres/clk/clk_bus.c | 5 ++---
sys/dev/extres/clk/clk_fixed.c | 5 ++---
sys/dev/extres/regulator/regulator_bus.c | 3 +--
sys/dev/extres/regulator/regulator_fixed.c | 4 +---
sys/dev/extres/syscon/syscon_generic.c | 5 ++---
sys/dev/extres/syscon/syscon_power.c | 4 +---
6 files changed, 9 insertions(+), 17 deletions(-)
diff --git a/sys/dev/extres/clk/clk_bus.c b/sys/dev/extres/clk/clk_bus.c
index e083ed0595d4..34e147188546 100644
--- a/sys/dev/extres/clk/clk_bus.c
+++ b/sys/dev/extres/clk/clk_bus.c
@@ -85,7 +85,6 @@ static device_method_t ofw_clkbus_methods[] = {
DEFINE_CLASS_1(ofw_clkbus, ofw_clkbus_driver, ofw_clkbus_methods,
sizeof(struct ofw_clkbus_softc), simplebus_driver);
-static devclass_t ofw_clkbus_devclass;
-EARLY_DRIVER_MODULE(ofw_clkbus, simplebus, ofw_clkbus_driver,
- ofw_clkbus_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
+EARLY_DRIVER_MODULE(ofw_clkbus, simplebus, ofw_clkbus_driver, 0, 0,
+ BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
MODULE_VERSION(ofw_clkbus, 1);
diff --git a/sys/dev/extres/clk/clk_fixed.c b/sys/dev/extres/clk/clk_fixed.c
index fd20bb61e9df..a38d444c5a29 100644
--- a/sys/dev/extres/clk/clk_fixed.c
+++ b/sys/dev/extres/clk/clk_fixed.c
@@ -274,9 +274,8 @@ static device_method_t clk_fixed_methods[] = {
DEFINE_CLASS_0(clk_fixed, clk_fixed_driver, clk_fixed_methods,
sizeof(struct clk_fixed_softc));
-static devclass_t clk_fixed_devclass;
-EARLY_DRIVER_MODULE(clk_fixed, simplebus, clk_fixed_driver,
- clk_fixed_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
+EARLY_DRIVER_MODULE(clk_fixed, simplebus, clk_fixed_driver, 0, 0,
+ BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
MODULE_VERSION(clk_fixed, 1);
#endif
diff --git a/sys/dev/extres/regulator/regulator_bus.c b/sys/dev/extres/regulator/regulator_bus.c
index bac88904a543..076c64bbc114 100644
--- a/sys/dev/extres/regulator/regulator_bus.c
+++ b/sys/dev/extres/regulator/regulator_bus.c
@@ -81,7 +81,6 @@ static device_method_t ofw_regulator_bus_methods[] = {
DEFINE_CLASS_1(ofw_regulator_bus, ofw_regulator_bus_driver,
ofw_regulator_bus_methods, sizeof(struct ofw_regulator_bus_softc),
simplebus_driver);
-static devclass_t ofw_regulator_bus_devclass;
EARLY_DRIVER_MODULE(ofw_regulator_bus, simplebus, ofw_regulator_bus_driver,
- ofw_regulator_bus_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
+ 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
MODULE_VERSION(ofw_regulator_bus, 1);
diff --git a/sys/dev/extres/regulator/regulator_fixed.c b/sys/dev/extres/regulator/regulator_fixed.c
index 3bf9efbd5e6a..176d79867e07 100644
--- a/sys/dev/extres/regulator/regulator_fixed.c
+++ b/sys/dev/extres/regulator/regulator_fixed.c
@@ -507,10 +507,8 @@ static device_method_t regfix_methods[] = {
DEVMETHOD_END
};
-static devclass_t regfix_devclass;
DEFINE_CLASS_0(regfix, regfix_driver, regfix_methods,
sizeof(struct regfix_softc));
-EARLY_DRIVER_MODULE(regfix, simplebus, regfix_driver,
- regfix_devclass, 0, 0, BUS_PASS_BUS);
+EARLY_DRIVER_MODULE(regfix, simplebus, regfix_driver, 0, 0, BUS_PASS_BUS);
#endif /* FDT */
diff --git a/sys/dev/extres/syscon/syscon_generic.c b/sys/dev/extres/syscon/syscon_generic.c
index 12b0ca446a5c..02863468b9ad 100644
--- a/sys/dev/extres/syscon/syscon_generic.c
+++ b/sys/dev/extres/syscon/syscon_generic.c
@@ -232,8 +232,7 @@ static device_method_t syscon_generic_dmethods[] = {
DEFINE_CLASS_1(syscon_generic_dev, syscon_generic_driver, syscon_generic_dmethods,
sizeof(struct syscon_generic_softc), simplebus_driver);
-static devclass_t syscon_generic_devclass;
-EARLY_DRIVER_MODULE(syscon_generic, simplebus, syscon_generic_driver,
- syscon_generic_devclass, 0, 0, BUS_PASS_DEFAULT);
+EARLY_DRIVER_MODULE(syscon_generic, simplebus, syscon_generic_driver, 0, 0,
+ BUS_PASS_DEFAULT);
MODULE_VERSION(syscon_generic, 1);
diff --git a/sys/dev/extres/syscon/syscon_power.c b/sys/dev/extres/syscon/syscon_power.c
index 586af0102713..0cc9c7969a16 100644
--- a/sys/dev/extres/syscon/syscon_power.c
+++ b/sys/dev/extres/syscon/syscon_power.c
@@ -192,7 +192,5 @@ static device_method_t syscon_power_methods[] = {
DEFINE_CLASS_0(syscon_power, syscon_power_driver, syscon_power_methods,
sizeof(struct syscon_power_softc));
-static devclass_t syscon_power_devclass;
-DRIVER_MODULE(syscon_power, simplebus, syscon_power_driver,
- syscon_power_devclass, NULL, NULL);
+DRIVER_MODULE(syscon_power, simplebus, syscon_power_driver, NULL, NULL);