summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2015-05-18 17:13:52 +0530
committerStefano Babic <sbabic@denx.de>2015-05-19 15:13:51 +0200
commit28420e780ab5b1bf4bd76ed04313b86ffc4ea17e (patch)
treec335b332521b7d68cb9a7d20c143df2a2be960c5
parent3fd10f3e25487121563fddfdd9c44cd863662b7a (diff)
downloadblackbird-obmc-uboot-28420e780ab5b1bf4bd76ed04313b86ffc4ea17e.tar.gz
blackbird-obmc-uboot-28420e780ab5b1bf4bd76ed04313b86ffc4ea17e.zip
arm/imx-common: Fix warning 'get_reset_cause' defined but not used
Fix below warning arch/arm/imx-common/cpu.c:29:14: warning: ‘get_reset_cause’ defined but not used static char *get_reset_cause(void) Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: Eric Nelson <eric.nelson@boundarydevices.com> Acked-by: Stefano Babic <sbabic@denx.de>
-rw-r--r--arch/arm/imx-common/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c
index 067d08f131..0cd08cb951 100644
--- a/arch/arm/imx-common/cpu.c
+++ b/arch/arm/imx-common/cpu.c
@@ -24,6 +24,7 @@
#include <fsl_esdhc.h>
#endif
+#if defined(CONFIG_DISPLAY_CPUINFO)
static u32 reset_cause = -1;
static char *get_reset_cause(void)
@@ -60,6 +61,7 @@ u32 get_imx_reset_cause(void)
{
return reset_cause;
}
+#endif
#if defined(CONFIG_MX53) || defined(CONFIG_MX6)
#if defined(CONFIG_MX53)
OpenPOWER on IntegriCloud