[MIPS] IP32: Don't ignore request_irq's return value.
authorRalf Baechle <ralf@linux-mips.org>
Sat, 28 Jul 2007 23:16:34 +0000 (00:16 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 31 Jul 2007 20:35:30 +0000 (21:35 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/sgi-ip32/ip32-reset.c

index db8084411538bc3bcdfa6ef047eca8f1d835c2ed..624bbdbff2a8bf40d47ae412d5361b43369b9b36 100644 (file)
@@ -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;
 }