Subject: [PATCH] fbcon: Protect free_irq() by MACH_IS_ATARI check From: Geert Uytterhoeven Add missing check for Atari in free_irq() call, which could cause problems on multi-platform kernels. Reported-by: Brad Boyer Signed-off-by: Geert Uytterhoeven --- drivers/video/console/fbcon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c @@ -3477,7 +3477,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);