diff --git a/freebsd/sys/dev/extres/regulator/regulator.c b/freebsd/sys/dev/extres/regulator/regulator.c index 4ad6e94a..5af3a562 100644 --- a/freebsd/sys/dev/extres/regulator/regulator.c +++ b/freebsd/sys/dev/extres/regulator/regulator.c @@ -51,7 +51,9 @@ __FBSDID("$FreeBSD$"); #endif #include +#if !defined(__rtems__) || defined(FDT) #include +#endif /* !__rtems__ || FDT */ SYSCTL_NODE(_hw, OID_AUTO, regulator, CTLFLAG_RD, NULL, "Regulators"); diff --git a/freebsd/sys/dev/gpio/gpioregulator.c b/freebsd/sys/dev/gpio/gpioregulator.c index 6d05e52e..70e5b1d0 100644 --- a/freebsd/sys/dev/gpio/gpioregulator.c +++ b/freebsd/sys/dev/gpio/gpioregulator.c @@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$"); #include #include +#if !defined(__rtems__) || defined(FDT) #include #include @@ -348,3 +349,4 @@ static devclass_t gpioregulator_devclass; EARLY_DRIVER_MODULE(gpioregulator, simplebus, gpioregulator_driver, gpioregulator_devclass, 0, 0, BUS_PASS_INTERRUPT + BUS_PASS_ORDER_LAST); MODULE_VERSION(gpioregulator, 1); +#endif /* !__rtems__ || FDT */