From: Fabio Estevam Date: Fri, 10 Feb 2012 05:34:03 +0000 (+0000) Subject: mx35: generic: Let get_reset_cause be defined only when CONFIG_DISPLAY_CPUINFO is... X-Git-Tag: v2012.04-rc1~128 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec0919f54bfe30d992034f78b09b41f9bfb77426;p=u-boot mx35: generic: Let get_reset_cause be defined only when CONFIG_DISPLAY_CPUINFO is selected get_reset_cause() function is only used inside print_cpuinfo(), so let it be defined only when CONFIG_DISPLAY_CPUINFO is selected. Signed-off-by: Fabio Estevam --- diff --git a/arch/arm/cpu/arm1136/mx35/generic.c b/arch/arm/cpu/arm1136/mx35/generic.c index d41613e57f..986b1f9463 100644 --- a/arch/arm/cpu/arm1136/mx35/generic.c +++ b/arch/arm/cpu/arm1136/mx35/generic.c @@ -422,6 +422,7 @@ U_BOOT_CMD( "" ); +#if defined(CONFIG_DISPLAY_CPUINFO) static char *get_reset_cause(void) { /* read RCSR register from CCM module */ @@ -444,7 +445,6 @@ static char *get_reset_cause(void) } } -#if defined(CONFIG_DISPLAY_CPUINFO) int print_cpuinfo(void) { u32 srev = get_cpu_rev();