arm/imx-common: Fix warning 'get_reset_cause' defined but not used
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Mon, 18 May 2015 11:43:52 +0000 (17:13 +0530)
committerStefano Babic <sbabic@denx.de>
Tue, 19 May 2015 13:13:51 +0000 (15:13 +0200)
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>
arch/arm/imx-common/cpu.c

index 067d08f131ad084fc5375945e848b24477a3453c..0cd08cb951b91fda82f19011a3f3ba5d5a313909 100644 (file)
@@ -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)