Remove unused ofw_iicbus_devclass.
This commit is contained in:
parent
676ea8e177
commit
85447c525b
@ -203,7 +203,7 @@ static driver_t i2c_driver = {
|
||||
static devclass_t i2c_devclass;
|
||||
|
||||
DRIVER_MODULE(imx_i2c, simplebus, i2c_driver, i2c_devclass, 0, 0);
|
||||
DRIVER_MODULE(ofw_iicbus, imx_i2c, ofw_iicbus_driver, ofw_iicbus_devclass, 0, 0);
|
||||
DRIVER_MODULE(ofw_iicbus, imx_i2c, ofw_iicbus_driver, 0, 0);
|
||||
MODULE_DEPEND(imx_i2c, iicbus, 1, 1, 1);
|
||||
SIMPLEBUS_PNP_INFO(compat_data);
|
||||
|
||||
|
@ -611,4 +611,4 @@ static devclass_t i2c_devclass;
|
||||
static DEFINE_CLASS_0(i2c, i2c_driver, i2c_methods, sizeof(struct i2c_softc));
|
||||
DRIVER_MODULE(vybrid_i2c, simplebus, i2c_driver, i2c_devclass, 0, 0);
|
||||
DRIVER_MODULE(iicbus, i2c, iicbus_driver, 0, 0);
|
||||
DRIVER_MODULE(ofw_iicbus, i2c, ofw_iicbus_driver, ofw_iicbus_devclass, 0, 0);
|
||||
DRIVER_MODULE(ofw_iicbus, i2c, ofw_iicbus_driver, 0, 0);
|
||||
|
@ -730,7 +730,7 @@ static devclass_t rk_i2c_devclass;
|
||||
|
||||
EARLY_DRIVER_MODULE(rk_i2c, simplebus, rk_i2c_driver, rk_i2c_devclass, 0, 0,
|
||||
BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
|
||||
EARLY_DRIVER_MODULE(ofw_iicbus, rk_i2c, ofw_iicbus_driver, ofw_iicbus_devclass,
|
||||
EARLY_DRIVER_MODULE(ofw_iicbus, rk_i2c, ofw_iicbus_driver,
|
||||
0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LATE);
|
||||
MODULE_DEPEND(rk_i2c, iicbus, 1, 1, 1);
|
||||
MODULE_VERSION(rk_i2c, 1);
|
||||
|
@ -100,7 +100,6 @@ int iicbus_child_pnpinfo(device_t bus, device_t child, struct sbuf *sb);
|
||||
|
||||
extern driver_t iicbus_driver;
|
||||
extern driver_t ofw_iicbus_driver;
|
||||
extern devclass_t ofw_iicbus_devclass;
|
||||
extern driver_t acpi_iicbus_driver;
|
||||
|
||||
#endif
|
||||
|
@ -187,6 +187,6 @@ static driver_t iicoc_driver = {
|
||||
|
||||
SIMPLEBUS_PNP_INFO(compat_data);
|
||||
DRIVER_MODULE(iicoc, simplebus, iicoc_driver, iicoc_devclass, 0, 0);
|
||||
DRIVER_MODULE(ofw_iicbus, iicoc, ofw_iicbus_driver, ofw_iicbus_devclass, 0, 0);
|
||||
DRIVER_MODULE(ofw_iicbus, iicoc, ofw_iicbus_driver, 0, 0);
|
||||
MODULE_DEPEND(iicoc, iicbus, 1, 1, 1);
|
||||
MODULE_DEPEND(iicoc, ofw_iicbus, 1, 1, 1);
|
||||
|
@ -258,7 +258,7 @@ DRIVER_MODULE(iic_gpiomux, simplebus, iic_gpiomux_driver, gpiomux_devclass, 0, 0
|
||||
DRIVER_MODULE(iic_gpiomux, ofw_simplebus, iic_gpiomux_driver, gpiomux_devclass, 0, 0);
|
||||
|
||||
#ifdef FDT
|
||||
DRIVER_MODULE(ofw_iicbus, iic_gpiomux, ofw_iicbus_driver, ofw_iicbus_devclass, 0, 0);
|
||||
DRIVER_MODULE(ofw_iicbus, iic_gpiomux, ofw_iicbus_driver, 0, 0);
|
||||
#else
|
||||
DRIVER_MODULE(iicbus, iic_gpiomux, iicbus_driver, 0, 0);
|
||||
#endif
|
||||
|
@ -248,7 +248,7 @@ DEFINE_CLASS_1(ltc430x, ltc430x_driver, ltc430x_methods,
|
||||
DRIVER_MODULE(ltc430x, iicbus, ltc430x_driver, ltc430x_devclass, 0, 0);
|
||||
|
||||
#ifdef FDT
|
||||
DRIVER_MODULE(ofw_iicbus, ltc430x, ofw_iicbus_driver, ofw_iicbus_devclass, 0, 0);
|
||||
DRIVER_MODULE(ofw_iicbus, ltc430x, ofw_iicbus_driver, 0, 0);
|
||||
#else
|
||||
DRIVER_MODULE(iicbus, ltc430x, iicbus_driver, 0, 0);
|
||||
#endif
|
||||
|
@ -156,7 +156,6 @@ DEFINE_CLASS_1(iicmux, pca9547_driver, pca9547_methods,
|
||||
sizeof(struct pca9547_softc), iicmux_driver);
|
||||
DRIVER_MODULE(pca_iicmux, iicbus, pca9547_driver, pca9547_devclass, 0, 0);
|
||||
DRIVER_MODULE(iicbus, iicmux, iicbus_driver, 0, 0);
|
||||
DRIVER_MODULE(ofw_iicbus, iicmux, ofw_iicbus_driver, ofw_iicbus_devclass,
|
||||
0, 0);
|
||||
DRIVER_MODULE(ofw_iicbus, iicmux, ofw_iicbus_driver, 0, 0);
|
||||
MODULE_DEPEND(pca9547, iicmux, 1, 1, 1);
|
||||
MODULE_DEPEND(pca9547, iicbus, 1, 1, 1);
|
||||
|
@ -200,7 +200,7 @@ DEFINE_CLASS_1(pca9548, pca954x_driver, pca954x_methods,
|
||||
DRIVER_MODULE(pca9548, iicbus, pca954x_driver, pca954x_devclass, 0, 0);
|
||||
|
||||
#ifdef FDT
|
||||
DRIVER_MODULE(ofw_iicbus, pca9548, ofw_iicbus_driver, ofw_iicbus_devclass, 0, 0);
|
||||
DRIVER_MODULE(ofw_iicbus, pca9548, ofw_iicbus_driver, 0, 0);
|
||||
#else
|
||||
DRIVER_MODULE(iicbus, pca9548, iicbus_driver, 0, 0);
|
||||
#endif
|
||||
|
@ -82,16 +82,11 @@ struct ofw_iicbus_devinfo {
|
||||
struct ofw_bus_devinfo opd_obdinfo;
|
||||
};
|
||||
|
||||
devclass_t ofw_iicbus_devclass;
|
||||
|
||||
DEFINE_CLASS_1(iicbus, ofw_iicbus_driver, ofw_iicbus_methods,
|
||||
sizeof(struct iicbus_softc), iicbus_driver);
|
||||
EARLY_DRIVER_MODULE(ofw_iicbus, iicbb, ofw_iicbus_driver, ofw_iicbus_devclass,
|
||||
0, 0, BUS_PASS_BUS);
|
||||
EARLY_DRIVER_MODULE(ofw_iicbus, iichb, ofw_iicbus_driver, ofw_iicbus_devclass,
|
||||
0, 0, BUS_PASS_BUS);
|
||||
EARLY_DRIVER_MODULE(ofw_iicbus, twsi, ofw_iicbus_driver, ofw_iicbus_devclass,
|
||||
0, 0, BUS_PASS_BUS);
|
||||
EARLY_DRIVER_MODULE(ofw_iicbus, iicbb, ofw_iicbus_driver, 0, 0, BUS_PASS_BUS);
|
||||
EARLY_DRIVER_MODULE(ofw_iicbus, iichb, ofw_iicbus_driver, 0, 0, BUS_PASS_BUS);
|
||||
EARLY_DRIVER_MODULE(ofw_iicbus, twsi, ofw_iicbus_driver, 0, 0, BUS_PASS_BUS);
|
||||
MODULE_VERSION(ofw_iicbus, 1);
|
||||
MODULE_DEPEND(ofw_iicbus, iicbus, 1, 1, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user