From: Ralf Baechle Date: Sat, 28 Jul 2007 23:16:34 +0000 (+0100) Subject: [MIPS] IP32: Don't ignore request_irq's return value. X-Git-Tag: v2.6.23-rc2~30^2~19 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3dd8cdf8563ac46b27b0cacfda5e7e6b18c4a46;p=linux-2.6 [MIPS] IP32: Don't ignore request_irq's return value. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/sgi-ip32/ip32-reset.c b/arch/mips/sgi-ip32/ip32-reset.c index db80844115..624bbdbff2 100644 --- a/arch/mips/sgi-ip32/ip32-reset.c +++ b/arch/mips/sgi-ip32/ip32-reset.c @@ -195,7 +195,8 @@ static __init int ip32_reboot_setup(void) blink_timer.function = blink_timeout; atomic_notifier_chain_register(&panic_notifier_list, &panic_block); - request_irq(MACEISA_RTC_IRQ, ip32_rtc_int, 0, "rtc", NULL); + if (request_irq(MACEISA_RTC_IRQ, ip32_rtc_int, 0, "rtc", NULL)) + panic("Can't allocate MACEISA RTC IRQ"); return 0; }