summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/spram.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/spram.c')
-rw-r--r--arch/mips/kernel/spram.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/kernel/spram.c b/arch/mips/kernel/spram.c
index f9a693a..67f2495 100644
--- a/arch/mips/kernel/spram.c
+++ b/arch/mips/kernel/spram.c
@@ -197,10 +197,9 @@ static void probe_spram(char *type,
}
void spram_config(void)
{
- struct cpuinfo_mips *c = &current_cpu_data;
unsigned int config0;
- switch (c->cputype) {
+ switch (current_cpu_type()) {
case CPU_24K:
case CPU_34K:
case CPU_74K:
OpenPOWER on IntegriCloud