MLK-21052-09 soc: imx: Fix building without HAVE_IMX_SRC
authorLeonard Crestez <leonard.crestez@nxp.com>
Fri, 1 Mar 2019 19:00:06 +0000 (21:00 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
If support for imx_src_is_m4_enabled is not compiled then just return
the default value "false".

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
include/soc/imx/src.h

index c55c34c..9e0c805 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef __SOC_IMX_SRC_H
 #define __SOC_IMX_SRC_H
 
+#if defined(CONFIG_HAVE_IMX_SRC)
 bool imx_src_is_m4_enabled(void);
+#else
+static inline bool imx_src_is_m4_enabled(void) { return false; }
+#endif
 
 #endif /* __SOC_IMX_SRC_H */