[PATCH 1/2] reset_source: provide static inline function if disabled
Sascha Hauer
s.hauer at pengutronix.de
Mon Oct 8 07:04:39 EDT 2012
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
include/reset_source.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/reset_source.h b/include/reset_source.h
index 6734fbde..75e7ba8 100644
--- a/include/reset_source.h
+++ b/include/reset_source.h
@@ -22,6 +22,12 @@ enum reset_src_type {
RESET_JTAG, /* JTAG reset */
};
+#ifdef CONFIG_RESET_SOURCE
void set_reset_source(enum reset_src_type);
+#else
+static inline void set_reset_source(enum reset_src_type unused)
+{
+}
+#endif
#endif /* __INCLUDE_RESET_SOURCE_H */
--
1.7.10.4
More information about the barebox
mailing list