]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
85xx: Fix compile warning
authorKumar Gala <galak@kernel.crashing.org>
Tue, 13 Apr 2010 16:07:57 +0000 (11:07 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 27 Apr 2010 03:37:55 +0000 (22:37 -0500)
cpu.c: In function 'checkcpu':
cpu.c:47: warning: unused variable 'gur'

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/cpu.c

index 15b7b231eea524dcce53f0788efcdf91e3aee6ac..fddeb2fb09e01ae32871d49f5b7b60876201f3ec 100644 (file)
@@ -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;