fbcon: Protect free_irq() by MACH_IS_ATARI check
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 18 Nov 2008 19:45:23 +0000 (20:45 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 28 Dec 2008 19:00:06 +0000 (20:00 +0100)
Add missing check for Atari in free_irq() call, which could cause problems on
multi-platform m68k kernels.

Reported-by: Brad Boyer <flar@allandria.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/video/console/fbcon.c

index e99bb7c5179826197b534a392f64332d6e83b626..4bcff81b50e03afa91f6dbf8eeef0784a2f12f12 100644 (file)
@@ -3455,7 +3455,8 @@ static void fbcon_exit(void)
                return;
 
 #ifdef CONFIG_ATARI
-       free_irq(IRQ_AUTO_4, fb_vbl_handler);
+       if (MACH_IS_ATARI)
+               free_irq(IRQ_AUTO_4, fb_vbl_handler);
 #endif
 
        kfree((void *)softback_buf);