Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=754d0f239ddb35682aa322b57b7fa4a8efd2fb54
Commit:     754d0f239ddb35682aa322b57b7fa4a8efd2fb54
Parent:     f70fd1b53c163442ba7c5d7a9279f23211a5ac6d
Author:     Ralf Baechle <[EMAIL PROTECTED]>
AuthorDate: Sun Oct 14 23:04:27 2007 +0100
Committer:  Ralf Baechle <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 18:23:46 2007 +0100

    [MIPS] IP22: Complain if requesting the front panel irq failed.
    
    This fixes the warning:
    
      CC      arch/mips/sgi-ip22/ip22-reset.o
    arch/mips/sgi-ip22/ip22-reset.c: In function 'reboot_setup':
    arch/mips/sgi-ip22/ip22-reset.c:239: warning: ignoring return value of 
'request_irq', declared with attribute warn_unused_result
    
    Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
---
 arch/mips/sgi-ip22/ip22-reset.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/arch/mips/sgi-ip22/ip22-reset.c b/arch/mips/sgi-ip22/ip22-reset.c
index 63afd7e..a435b31 100644
--- a/arch/mips/sgi-ip22/ip22-reset.c
+++ b/arch/mips/sgi-ip22/ip22-reset.c
@@ -232,11 +232,18 @@ static struct notifier_block panic_block = {
 
 static int __init reboot_setup(void)
 {
+       int res;
+
        _machine_restart = sgi_machine_restart;
        _machine_halt = sgi_machine_halt;
        pm_power_off = sgi_machine_power_off;
 
-       request_irq(SGI_PANEL_IRQ, panel_int, 0, "Front Panel", NULL);
+       res = request_irq(SGI_PANEL_IRQ, panel_int, 0, "Front Panel", NULL);
+       if (res) {
+               printk(KERN_ERR "Allocation of front panel IRQ failed\n");
+               return res;
+       }
+
        init_timer(&blink_timer);
        blink_timer.function = blink_timeout;
        atomic_notifier_chain_register(&panic_notifier_list, &panic_block);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to