]> git.hungrycats.org Git - linux/commitdiff
[ARM] Fix minor bug in bitwise expression.
authorDave Hylands <dhylands@com.rmk.(none)>
Sun, 21 Dec 2003 20:26:29 +0000 (20:26 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sun, 21 Dec 2003 20:26:29 +0000 (20:26 +0000)
Patch from Dave Hylands.

The integrator code should have tested bits in INTEGRATOR_SC_VALID_INT
but instead it performed a logical AND.

arch/arm/mach-integrator/integrator_ap.c

index 149c626d6e519f4683ff73594c1937cf1cc699c6..bc4831852c76b775fcdbb8747582eacd4d6346f1 100644 (file)
@@ -126,7 +126,7 @@ static void __init ap_init_irq(void)
        writel(-1, VA_IC_BASE + FIQ_ENABLE_CLEAR);
 
        for (i = 0; i < NR_IRQS; i++) {
-               if (((1 << i) && INTEGRATOR_SC_VALID_INT) != 0) {
+               if (((1 << i) & INTEGRATOR_SC_VALID_INT) != 0) {
                        set_irq_chip(i, &sc_chip);
                        set_irq_handler(i, do_level_IRQ);
                        set_irq_flags(i, IRQF_VALID | IRQF_PROBE);