[rtems-libbsd commit] Fix build for non-FDT platforms
Sebastian Huber
sebh at rtems.org
Fri Nov 10 12:32:31 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: 847de24eb0a351a37c6f004cc506a5177599283d
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=847de24eb0a351a37c6f004cc506a5177599283d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Nov 10 13:32:14 2017 +0100
Fix build for non-FDT platforms
---
freebsd/sys/dev/gpio/ofw_gpiobus.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/freebsd/sys/dev/gpio/ofw_gpiobus.c b/freebsd/sys/dev/gpio/ofw_gpiobus.c
index 24e9477..e76059f 100644
--- a/freebsd/sys/dev/gpio/ofw_gpiobus.c
+++ b/freebsd/sys/dev/gpio/ofw_gpiobus.c
@@ -38,6 +38,10 @@ __FBSDID("$FreeBSD$");
#include <sys/malloc.h>
#include <sys/module.h>
+#ifdef __rtems__
+#include <rtems/bsd/local/opt_platform.h>
+#endif /* __rtems__ */
+#if defined(__rtems__) && defined(FDT)
#include <dev/gpio/gpiobusvar.h>
#include <dev/ofw/ofw_bus.h>
@@ -591,3 +595,4 @@ EARLY_DRIVER_MODULE(ofw_gpiobus, gpio, ofw_gpiobus_driver, ofwgpiobus_devclass,
0, 0, BUS_PASS_BUS);
MODULE_VERSION(ofw_gpiobus, 1);
MODULE_DEPEND(ofw_gpiobus, gpiobus, 1, 1, 1);
+#endif /* __rtems__ && FDT */
More information about the vc
mailing list