m68k: sun3 core - Kill warn_unused_result warnings
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 30 Dec 2008 13:05:24 +0000 (14:05 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 12 Jan 2009 19:56:38 +0000 (20:56 +0100)
warning: ignoring return value of 'request_irq', declared with attribute
warn_unused_result

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/sun3/sun3ints.c

index 7364cd67455e94ba410d3aa4b245b62d8abdba1a..ad90393a336101e003a61dedcbc447350fe9aed2 100644 (file)
@@ -105,7 +105,10 @@ void __init sun3_init_IRQ(void)
        m68k_setup_irq_controller(&sun3_irq_controller, IRQ_AUTO_1, 7);
        m68k_setup_user_interrupt(VEC_USER, 128, NULL);
 
-       request_irq(IRQ_AUTO_5, sun3_int5, 0, "int5", NULL);
-       request_irq(IRQ_AUTO_7, sun3_int7, 0, "int7", NULL);
-       request_irq(IRQ_USER+127, sun3_vec255, 0, "vec255", NULL);
+       if (request_irq(IRQ_AUTO_5, sun3_int5, 0, "int5", NULL))
+               pr_err("Couldn't register %s interrupt\n", "int5");
+       if (request_irq(IRQ_AUTO_7, sun3_int7, 0, "int7", NULL))
+               pr_err("Couldn't register %s interrupt\n", "int7");
+       if (request_irq(IRQ_USER+127, sun3_vec255, 0, "vec255", NULL))
+               pr_err("Couldn't register %s interrupt\n", "vec255");
 }