Attach RSB early. Children of RSB may provide resources necessary for

other devices such as interrupts, GPIOs, and regulators.
This commit is contained in:
Jared McNeill 2016-07-11 20:02:51 +00:00
parent 7dd6227263
commit 221a9d6dd6

View File

@ -472,6 +472,8 @@ static driver_t rsb_driver = {
static devclass_t rsb_devclass;
DRIVER_MODULE(iicbus, rsb, iicbus_driver, iicbus_devclass, 0, 0);
DRIVER_MODULE(rsb, simplebus, rsb_driver, rsb_devclass, 0, 0);
EARLY_DRIVER_MODULE(iicbus, rsb, iicbus_driver, iicbus_devclass, 0, 0,
BUS_PASS_RESOURCE + BUS_PASS_ORDER_MIDDLE);
EARLY_DRIVER_MODULE(rsb, simplebus, rsb_driver, rsb_devclass, 0, 0,
BUS_PASS_RESOURCE + BUS_PASS_ORDER_MIDDLE);
MODULE_VERSION(rsb, 1);