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-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f877ebb32ac9a4b0783e825cef84c6ace87fe90;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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 e99bb7c51798..4bcff81b50e0 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);