]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 13:00:32 +0000 (15:00 +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 a39e053c570c486800ae64deacb15c9307e2899a..2e7f6d1a11d4a0cde2dcb221b8b59dafba46c128 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_SOC_MX53) || defined(CONFIG_SOC_MX6)
 #if defined(CONFIG_SOC_MX53)