Skip to content
Snippets Groups Projects
Commit 9ce3c228 authored by Kumar Gala's avatar Kumar Gala
Browse files

85xx: Fix compile warning


cpu.c: In function 'checkcpu':
cpu.c:47: warning: unused variable 'gur'

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 4db9708b
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,9 @@ int checkcpu (void) ...@@ -44,7 +44,9 @@ int checkcpu (void)
uint major, minor; uint major, minor;
struct cpu_type *cpu; struct cpu_type *cpu;
char buf1[32], buf2[32]; 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); volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
#endif /* CONFIG_FSL_CORENET */
#ifdef CONFIG_DDR_CLK_FREQ #ifdef CONFIG_DDR_CLK_FREQ
u32 ddr_ratio = ((gur->porpllsr) & MPC85xx_PORPLLSR_DDR_RATIO) u32 ddr_ratio = ((gur->porpllsr) & MPC85xx_PORPLLSR_DDR_RATIO)
>> MPC85xx_PORPLLSR_DDR_RATIO_SHIFT; >> MPC85xx_PORPLLSR_DDR_RATIO_SHIFT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment