From: Geert Uytterhoeven Date: Tue, 18 Nov 2008 19:45:23 +0000 (+0100) Subject: fbcon: Protect free_irq() by MACH_IS_ATARI check X-Git-Tag: v2.6.29-rc1~580^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7f877ebb32ac9a4b0783e825cef84c6ace87fe90;p=linux-2.6-omap-h63xx.git fbcon: Protect free_irq() by MACH_IS_ATARI check Add missing check for Atari in free_irq() call, which could cause problems on multi-platform m68k kernels. Reported-by: Brad Boyer Signed-off-by: Geert Uytterhoeven --- diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index e99bb7c5179..4bcff81b50e 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -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);