summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/dev/extres/regulator/regulator.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/dev/extres/regulator/regulator.c')
-rw-r--r--freebsd/sys/dev/extres/regulator/regulator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/sys/dev/extres/regulator/regulator.c b/freebsd/sys/dev/extres/regulator/regulator.c
index ca2de6c4..49020bdb 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 <dev/extres/regulator/regulator.h>
+#if !defined(__rtems__) || defined(FDT)
#include <rtems/bsd/local/regdev_if.h>
+#endif /* !__rtems__ || FDT */
SYSCTL_NODE(_hw, OID_AUTO, regulator, CTLFLAG_RD, NULL, "Regulators");