[PATCH] ppc32: don't recursively crash in die() on CHRP/PReP machines
[linux-3.10.git] / arch / ppc / kernel / traps.c
index c65731e8bc657cb2edbcec90b8050ef813846803..2ca8ecfeefd978058bb65d6ca3d526d1e640a483 100644 (file)
@@ -81,8 +81,10 @@ void die(const char * str, struct pt_regs * fp, long err)
        console_verbose();
        spin_lock_irq(&die_lock);
 #ifdef CONFIG_PMAC_BACKLIGHT
-       set_backlight_enable(1);
-       set_backlight_level(BACKLIGHT_MAX);
+       if (_machine == _MACH_Pmac) {
+               set_backlight_enable(1);
+               set_backlight_level(BACKLIGHT_MAX);
+       }
 #endif
        printk("Oops: %s, sig: %ld [#%d]\n", str, err, ++die_counter);
 #ifdef CONFIG_PREEMPT