From: Prabhakar Kushwaha Date: Mon, 18 May 2015 11:43:52 +0000 (+0530) Subject: arm/imx-common: Fix warning 'get_reset_cause' defined but not used X-Git-Tag: KARO-TX6-2015-09-18~2961 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=dab45dcdbbc14f8e5bfdf8db0a50ec23d7c42fcd 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 Reviewed-by: Eric Nelson Acked-by: Stefano Babic --- diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c index a39e053c57..2e7f6d1a11 100644 --- a/arch/arm/imx-common/cpu.c +++ b/arch/arm/imx-common/cpu.c @@ -24,6 +24,7 @@ #include #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)