]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/dec/ecc-berr.c
bnx2: Handle DMA mapping errors.
[linux-2.6-omap-h63xx.git] / arch / mips / dec / ecc-berr.c
index c8430c07355ed5c26da325ac7e0d79f1dc251e21..6a17c9b508eaa06dea5f66791e06e9f6f3d8dfc5 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/cpu.h>
 #include <asm/irq_regs.h>
 #include <asm/processor.h>
+#include <asm/ptrace.h>
 #include <asm/system.h>
 #include <asm/traps.h>
 
@@ -262,7 +263,7 @@ static inline void dec_kn03_be_init(void)
         */
        *mcr = (*mcr & ~(KN03_MCR_DIAGCHK | KN03_MCR_DIAGGEN)) |
               KN03_MCR_CORRECT;
-       if (current_cpu_data.cputype == CPU_R4400SC)
+       if (current_cpu_type() == CPU_R4400SC)
                *mbcs |= KN4K_MB_CSR_EE;
        fast_iob();
 }