]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/arm/imx-common/cpu.c
arm/imx-common: Fix warning 'get_reset_cause' defined but not used
[karo-tx-uboot.git] / 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)