arm64 rockchip: Remove unused devclass arguments to DRIVER_MODULE.
This commit is contained in:
parent
d782704278
commit
b2c1681aa1
@ -918,10 +918,8 @@ static device_method_t rk3288_cru_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t rk3288_cru_devclass;
|
||||
|
||||
DEFINE_CLASS_1(rk3288_cru, rk3288_cru_driver, rk3288_cru_methods,
|
||||
sizeof(struct rk_cru_softc), rk_cru_driver);
|
||||
|
||||
EARLY_DRIVER_MODULE(rk3288_cru, simplebus, rk3288_cru_driver,
|
||||
rk3288_cru_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE + 1);
|
||||
EARLY_DRIVER_MODULE(rk3288_cru, simplebus, rk3288_cru_driver, 0, 0,
|
||||
BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE + 1);
|
||||
|
@ -1114,10 +1114,8 @@ static device_method_t rk3328_cru_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t rk3328_cru_devclass;
|
||||
|
||||
DEFINE_CLASS_1(rk3328_cru, rk3328_cru_driver, rk3328_cru_methods,
|
||||
sizeof(struct rk_cru_softc), rk_cru_driver);
|
||||
|
||||
EARLY_DRIVER_MODULE(rk3328_cru, simplebus, rk3328_cru_driver,
|
||||
rk3328_cru_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(rk3328_cru, simplebus, rk3328_cru_driver, 0, 0,
|
||||
BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
|
||||
|
@ -1269,10 +1269,8 @@ static device_method_t rk3399_cru_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t rk3399_cru_devclass;
|
||||
|
||||
DEFINE_CLASS_1(rk3399_cru, rk3399_cru_driver, rk3399_cru_methods,
|
||||
sizeof(struct rk_cru_softc), rk_cru_driver);
|
||||
|
||||
EARLY_DRIVER_MODULE(rk3399_cru, simplebus, rk3399_cru_driver,
|
||||
rk3399_cru_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(rk3399_cru, simplebus, rk3399_cru_driver, 0, 0,
|
||||
BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
|
||||
|
@ -860,10 +860,8 @@ static device_method_t rk3399_pmucru_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t rk3399_pmucru_devclass;
|
||||
|
||||
DEFINE_CLASS_1(rk3399_pmucru, rk3399_pmucru_driver, rk3399_pmucru_methods,
|
||||
sizeof(struct rk_cru_softc), rk_cru_driver);
|
||||
|
||||
EARLY_DRIVER_MODULE(rk3399_pmucru, simplebus, rk3399_pmucru_driver,
|
||||
rk3399_pmucru_devclass, 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(rk3399_pmucru, simplebus, rk3399_pmucru_driver, 0, 0,
|
||||
BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
|
||||
|
@ -615,11 +615,9 @@ static device_method_t if_dwc_rk_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t dwc_rk_devclass;
|
||||
|
||||
extern driver_t dwc_driver;
|
||||
|
||||
DEFINE_CLASS_1(dwc, dwc_rk_driver, if_dwc_rk_methods,
|
||||
sizeof(struct if_dwc_rk_softc), dwc_driver);
|
||||
DRIVER_MODULE(dwc_rk, simplebus, dwc_rk_driver, dwc_rk_devclass, 0, 0);
|
||||
DRIVER_MODULE(dwc_rk, simplebus, dwc_rk_driver, 0, 0);
|
||||
MODULE_DEPEND(dwc_rk, dwc, 1, 1, 1);
|
||||
|
@ -606,7 +606,5 @@ static driver_t rkcodec_driver = {
|
||||
sizeof(struct rkcodec_softc),
|
||||
};
|
||||
|
||||
static devclass_t rkcodec_devclass;
|
||||
|
||||
DRIVER_MODULE(rkcodec, simplebus, rkcodec_driver, rkcodec_devclass, 0, 0);
|
||||
DRIVER_MODULE(rkcodec, simplebus, rkcodec_driver, 0, 0);
|
||||
SIMPLEBUS_PNP_INFO(compat_data);
|
||||
|
@ -335,7 +335,6 @@ static driver_t rk_emmcphy_driver = {
|
||||
sizeof(struct rk_emmcphy_softc)
|
||||
};
|
||||
|
||||
static devclass_t rk_emmcphy_devclass;
|
||||
EARLY_DRIVER_MODULE(rk_emmcphy, simplebus, rk_emmcphy_driver,
|
||||
rk_emmcphy_devclass, 0, 0, BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(rk_emmcphy, simplebus, rk_emmcphy_driver, 0, 0,
|
||||
BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_MIDDLE);
|
||||
MODULE_VERSION(rk_emmcphy, 1);
|
||||
|
@ -202,8 +202,6 @@ static device_method_t rk_dwc3_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t rk_dwc3_devclass;
|
||||
|
||||
DEFINE_CLASS_1(rk_dwc3, rk_dwc3_driver, rk_dwc3_methods,
|
||||
sizeof(struct rk_dwc3_softc), simplebus_driver);
|
||||
DRIVER_MODULE(rk_dwc3, simplebus, rk_dwc3_driver, rk_dwc3_devclass, 0, 0);
|
||||
DRIVER_MODULE(rk_dwc3, simplebus, rk_dwc3_driver, 0, 0);
|
||||
|
@ -466,12 +466,10 @@ static driver_t rk_gpio_driver = {
|
||||
sizeof(struct rk_gpio_softc),
|
||||
};
|
||||
|
||||
static devclass_t rk_gpio_devclass;
|
||||
|
||||
/*
|
||||
* GPIO driver is always a child of rk_pinctrl driver and should be probed
|
||||
* and attached within rk_pinctrl_attach function. Due to this, bus pass order
|
||||
* must be same as bus pass order of rk_pinctrl driver.
|
||||
*/
|
||||
EARLY_DRIVER_MODULE(rk_gpio, simplebus, rk_gpio_driver,
|
||||
rk_gpio_devclass, 0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(rk_gpio, simplebus, rk_gpio_driver, 0, 0,
|
||||
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
|
||||
|
@ -73,7 +73,6 @@ static device_method_t rk_grf_methods[] = {
|
||||
DEFINE_CLASS_1(rk_grf, rk_grf_driver, rk_grf_methods,
|
||||
sizeof(struct simple_mfd_softc), simple_mfd_driver);
|
||||
|
||||
static devclass_t rk_grf_devclass;
|
||||
EARLY_DRIVER_MODULE(rk_grf, simplebus, rk_grf_driver, rk_grf_devclass,
|
||||
0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(rk_grf, simplebus, rk_grf_driver, 0, 0,
|
||||
BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
|
||||
MODULE_VERSION(rk_grf, 1);
|
||||
|
@ -726,9 +726,7 @@ static driver_t rk_i2c_driver = {
|
||||
sizeof(struct rk_i2c_softc),
|
||||
};
|
||||
|
||||
static devclass_t rk_i2c_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(rk_i2c, simplebus, rk_i2c_driver, rk_i2c_devclass, 0, 0,
|
||||
EARLY_DRIVER_MODULE(rk_i2c, simplebus, rk_i2c_driver, 0, 0,
|
||||
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
|
||||
EARLY_DRIVER_MODULE(ofw_iicbus, rk_i2c, ofw_iicbus_driver,
|
||||
0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
|
||||
|
@ -652,7 +652,5 @@ static driver_t rk_i2s_driver = {
|
||||
sizeof(struct rk_i2s_softc),
|
||||
};
|
||||
|
||||
static devclass_t rk_i2s_devclass;
|
||||
|
||||
DRIVER_MODULE(rk_i2s, simplebus, rk_i2s_driver, rk_i2s_devclass, 0, 0);
|
||||
DRIVER_MODULE(rk_i2s, simplebus, rk_i2s_driver, 0, 0);
|
||||
SIMPLEBUS_PNP_INFO(compat_data);
|
||||
|
@ -216,7 +216,5 @@ static driver_t rk_iodomain_driver = {
|
||||
sizeof(struct rk_iodomain_softc),
|
||||
};
|
||||
|
||||
static devclass_t rk_iodomain_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(rk_iodomain, simplebus, rk_iodomain_driver,
|
||||
rk_iodomain_devclass, 0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(rk_iodomain, simplebus, rk_iodomain_driver, 0, 0,
|
||||
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
|
||||
|
@ -1384,6 +1384,4 @@ static device_method_t rk_pcie_methods[] = {
|
||||
|
||||
DEFINE_CLASS_1(pcib, rk_pcie_driver, rk_pcie_methods,
|
||||
sizeof(struct rk_pcie_softc), ofw_pcib_driver);
|
||||
static devclass_t rk_pcie_devclass;
|
||||
DRIVER_MODULE( rk_pcie, simplebus, rk_pcie_driver, rk_pcie_devclass,
|
||||
NULL, NULL);
|
||||
DRIVER_MODULE( rk_pcie, simplebus, rk_pcie_driver, NULL, NULL);
|
||||
|
@ -364,7 +364,5 @@ static device_method_t rk_pcie_phy_methods[] = {
|
||||
DEFINE_CLASS_0(rk_pcie_phy, rk_pcie_phy_driver, rk_pcie_phy_methods,
|
||||
sizeof(struct rk_pcie_phy_softc));
|
||||
|
||||
static devclass_t rk_pcie_phy_devclass;
|
||||
EARLY_DRIVER_MODULE(rk_pcie_phy, simplebus, rk_pcie_phy_driver,
|
||||
rk_pcie_phy_devclass, NULL, NULL,
|
||||
EARLY_DRIVER_MODULE(rk_pcie_phy, simplebus, rk_pcie_phy_driver, NULL, NULL,
|
||||
BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_MIDDLE);
|
||||
|
@ -1337,11 +1337,9 @@ static device_method_t rk_pinctrl_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t rk_pinctrl_devclass;
|
||||
|
||||
DEFINE_CLASS_1(rk_pinctrl, rk_pinctrl_driver, rk_pinctrl_methods,
|
||||
sizeof(struct rk_pinctrl_softc), simplebus_driver);
|
||||
|
||||
EARLY_DRIVER_MODULE(rk_pinctrl, simplebus, rk_pinctrl_driver,
|
||||
rk_pinctrl_devclass, 0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(rk_pinctrl, simplebus, rk_pinctrl_driver, 0, 0,
|
||||
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_MIDDLE);
|
||||
MODULE_VERSION(rk_pinctrl, 1);
|
||||
|
@ -71,7 +71,6 @@ static device_method_t rk_pmu_methods[] = {
|
||||
DEFINE_CLASS_1(rk_pmu, rk_pmu_driver, rk_pmu_methods,
|
||||
sizeof(struct simple_mfd_softc), simple_mfd_driver);
|
||||
|
||||
static devclass_t rk_pmu_devclass;
|
||||
EARLY_DRIVER_MODULE(rk_pmu, simplebus, rk_pmu_driver, rk_pmu_devclass,
|
||||
0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(rk_pmu, simplebus, rk_pmu_driver, 0, 0,
|
||||
BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);
|
||||
MODULE_VERSION(rk_pmu, 1);
|
||||
|
@ -398,7 +398,5 @@ static driver_t rk_pwm_driver = {
|
||||
sizeof(struct rk_pwm_softc),
|
||||
};
|
||||
|
||||
static devclass_t rk_pwm_devclass;
|
||||
|
||||
DRIVER_MODULE(rk_pwm, simplebus, rk_pwm_driver, rk_pwm_devclass, 0, 0);
|
||||
DRIVER_MODULE(rk_pwm, simplebus, rk_pwm_driver, 0, 0);
|
||||
SIMPLEBUS_PNP_INFO(compat_data);
|
||||
|
@ -476,9 +476,7 @@ static driver_t rk_spi_driver = {
|
||||
sizeof(struct rk_spi_softc),
|
||||
};
|
||||
|
||||
static devclass_t rk_spi_devclass;
|
||||
|
||||
DRIVER_MODULE(rk_spi, simplebus, rk_spi_driver, rk_spi_devclass, 0, 0);
|
||||
DRIVER_MODULE(rk_spi, simplebus, rk_spi_driver, 0, 0);
|
||||
DRIVER_MODULE(ofw_spibus, rk_spi, ofw_spibus_driver, 0, 0);
|
||||
MODULE_DEPEND(rk_spi, ofw_spibus, 1, 1, 1);
|
||||
OFWBUS_PNP_INFO(compat_data);
|
||||
|
@ -786,8 +786,7 @@ static device_method_t rk_tsadc_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t rk_tsadc_devclass;
|
||||
static DEFINE_CLASS_0(rk_tsadc, rk_tsadc_driver, rk_tsadc_methods,
|
||||
sizeof(struct tsadc_softc));
|
||||
EARLY_DRIVER_MODULE(rk_tsadc, simplebus, rk_tsadc_driver,
|
||||
rk_tsadc_devclass, NULL, NULL, BUS_PASS_TIMER + BUS_PASS_ORDER_LAST);
|
||||
EARLY_DRIVER_MODULE(rk_tsadc, simplebus, rk_tsadc_driver, NULL, NULL,
|
||||
BUS_PASS_TIMER + BUS_PASS_ORDER_LAST);
|
||||
|
@ -468,7 +468,6 @@ static driver_t rk_typec_phy_driver = {
|
||||
sizeof(struct rk_typec_phy_softc)
|
||||
};
|
||||
|
||||
static devclass_t rk_typec_phy_devclass;
|
||||
EARLY_DRIVER_MODULE(rk_typec_phy, simplebus, rk_typec_phy_driver,
|
||||
rk_typec_phy_devclass, 0, 0, BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(rk_typec_phy, simplebus, rk_typec_phy_driver, 0, 0,
|
||||
BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_MIDDLE);
|
||||
MODULE_VERSION(rk_typec_phy, 1);
|
||||
|
@ -411,7 +411,6 @@ static driver_t rk_usb2phy_driver = {
|
||||
sizeof(struct rk_usb2phy_softc)
|
||||
};
|
||||
|
||||
static devclass_t rk_usb2phy_devclass;
|
||||
EARLY_DRIVER_MODULE(rk_usb2phy, simplebus, rk_usb2phy_driver,
|
||||
rk_usb2phy_devclass, 0, 0, BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_MIDDLE);
|
||||
EARLY_DRIVER_MODULE(rk_usb2phy, simplebus, rk_usb2phy_driver, 0, 0,
|
||||
BUS_PASS_SUPPORTDEV + BUS_PASS_ORDER_MIDDLE);
|
||||
MODULE_VERSION(rk_usb2phy, 1);
|
||||
|
@ -297,8 +297,7 @@ static device_method_t rk_usbphy_methods[] = {
|
||||
DEVMETHOD_END
|
||||
};
|
||||
|
||||
static devclass_t rk_usbphy_devclass;
|
||||
static DEFINE_CLASS_0(rk_usbphy, rk_usbphy_driver, rk_usbphy_methods,
|
||||
sizeof(struct rk_usbphy_softc));
|
||||
EARLY_DRIVER_MODULE(rk_usbphy, simplebus, rk_usbphy_driver,
|
||||
rk_usbphy_devclass, NULL, NULL, BUS_PASS_TIMER + BUS_PASS_ORDER_LAST);
|
||||
EARLY_DRIVER_MODULE(rk_usbphy, simplebus, rk_usbphy_driver, NULL, NULL,
|
||||
BUS_PASS_TIMER + BUS_PASS_ORDER_LAST);
|
||||
|
Loading…
Reference in New Issue
Block a user