extres drivers: Remove unused devclass arguments to DRIVER_MODULE.

This commit is contained in:
John Baldwin 2022-05-09 14:26:44 -07:00
parent 31e2d81e3b
commit b440e459a7
6 changed files with 9 additions and 17 deletions

@ -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);

@ -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

@ -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);

@ -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 */

@ -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);

@ -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);