diff options
Diffstat (limited to 'arch/mips/bcm63xx')
-rw-r--r-- | arch/mips/bcm63xx/cpu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/bcm63xx/cpu.c b/arch/mips/bcm63xx/cpu.c index b713cd64b087..1b1b8a89959b 100644 --- a/arch/mips/bcm63xx/cpu.c +++ b/arch/mips/bcm63xx/cpu.c | |||
@@ -123,7 +123,9 @@ unsigned int bcm63xx_get_memory_size(void) | |||
123 | 123 | ||
124 | static unsigned int detect_cpu_clock(void) | 124 | static unsigned int detect_cpu_clock(void) |
125 | { | 125 | { |
126 | switch (bcm63xx_get_cpu_id()) { | 126 | u16 cpu_id = bcm63xx_get_cpu_id(); |
127 | |||
128 | switch (cpu_id) { | ||
127 | case BCM3368_CPU_ID: | 129 | case BCM3368_CPU_ID: |
128 | return 300000000; | 130 | return 300000000; |
129 | 131 | ||
@@ -249,7 +251,7 @@ static unsigned int detect_cpu_clock(void) | |||
249 | } | 251 | } |
250 | 252 | ||
251 | default: | 253 | default: |
252 | BUG(); | 254 | panic("Failed to detect clock for CPU with id=%04X\n", cpu_id); |
253 | } | 255 | } |
254 | } | 256 | } |
255 | 257 | ||