Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=28820d9f793b4d9998d5d4132b8bab0ec9bf6ec3
Commit:     28820d9f793b4d9998d5d4132b8bab0ec9bf6ec3
Parent:     fd6e9d3945ee122eb513ada8b17296d243c1ce5e
Author:     Geoff Levand <[EMAIL PROTECTED]>
AuthorDate: Sat May 12 03:41:59 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Sat May 12 11:32:48 2007 +1000

    [POWERPC] PS3: Fix request_irq warning
    
    Fix compiler warning:
    
    ps3/smp.c:122: warning: ignoring return value of 'request_irq'
    
    Signed-off-by: Geoff Levand <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/platforms/ps3/smp.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/platforms/ps3/smp.c b/arch/powerpc/platforms/ps3/smp.c
index 8729348..53416ec 100644
--- a/arch/powerpc/platforms/ps3/smp.c
+++ b/arch/powerpc/platforms/ps3/smp.c
@@ -118,9 +118,11 @@ static void __init ps3_smp_setup_cpu(int cpu)
                DBG("%s:%d: (%d, %d) => virq %u\n",
                        __func__, __LINE__, cpu, i, virqs[i]);
 
+               result = request_irq(virqs[i], ipi_function_handler,
+                       IRQF_DISABLED, names[i], (void*)(long)i);
 
-               request_irq(virqs[i], ipi_function_handler, IRQF_DISABLED,
-                       names[i], (void*)(long)i);
+               if (result)
+                       virqs[i] = NO_IRQ;
        }
 
        ps3_register_ipi_debug_brk(cpu, virqs[PPC_MSG_DEBUGGER_BREAK]);
-
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