diff options
Diffstat (limited to 'arch/mips/bcm63xx/cpu.c')
-rw-r--r-- | arch/mips/bcm63xx/cpu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/bcm63xx/cpu.c b/arch/mips/bcm63xx/cpu.c index 1b1b8a89959b..fd4e76c00a42 100644 --- a/arch/mips/bcm63xx/cpu.c +++ b/arch/mips/bcm63xx/cpu.c | |||
@@ -299,14 +299,13 @@ static unsigned int detect_memory_size(void) | |||
299 | void __init bcm63xx_cpu_init(void) | 299 | void __init bcm63xx_cpu_init(void) |
300 | { | 300 | { |
301 | unsigned int tmp; | 301 | unsigned int tmp; |
302 | struct cpuinfo_mips *c = ¤t_cpu_data; | ||
303 | unsigned int cpu = smp_processor_id(); | 302 | unsigned int cpu = smp_processor_id(); |
304 | u32 chipid_reg; | 303 | u32 chipid_reg; |
305 | 304 | ||
306 | /* soc registers location depends on cpu type */ | 305 | /* soc registers location depends on cpu type */ |
307 | chipid_reg = 0; | 306 | chipid_reg = 0; |
308 | 307 | ||
309 | switch (c->cputype) { | 308 | switch (current_cpu_type()) { |
310 | case CPU_BMIPS3300: | 309 | case CPU_BMIPS3300: |
311 | if ((read_c0_prid() & PRID_IMP_MASK) != PRID_IMP_BMIPS3300_ALT) | 310 | if ((read_c0_prid() & PRID_IMP_MASK) != PRID_IMP_BMIPS3300_ALT) |
312 | __cpu_name[cpu] = "Broadcom BCM6338"; | 311 | __cpu_name[cpu] = "Broadcom BCM6338"; |