From: Kumar Gala Date: Wed, 14 Apr 2010 00:03:56 -0500 Subject: [U-Boot] [PATCH] 85xx: Fix compile warning Message-ID: <1271221436-12211-1-git-send-email-galak@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de cpu.c: In function 'checkcpu': cpu.c:47: warning: unused variable 'gur' Signed-off-by: Kumar Gala --- arch/ppc/cpu/mpc85xx/cpu.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/ppc/cpu/mpc85xx/cpu.c b/arch/ppc/cpu/mpc85xx/cpu.c index 15b7b23..fddeb2f 100644 --- a/arch/ppc/cpu/mpc85xx/cpu.c +++ b/arch/ppc/cpu/mpc85xx/cpu.c @@ -44,7 +44,9 @@ int checkcpu (void) uint major, minor; struct cpu_type *cpu; char buf1[32], buf2[32]; +#if defined(CONFIG_DDR_CLK_FREQ) || defined(CONFIG_FSL_CORENET) volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR); +#endif /* CONFIG_FSL_CORENET */ #ifdef CONFIG_DDR_CLK_FREQ u32 ddr_ratio = ((gur->porpllsr) & MPC85xx_PORPLLSR_DDR_RATIO) >> MPC85xx_PORPLLSR_DDR_RATIO_SHIFT; -- 1.6.0.6