fix ar7 compile
[openwrt.git] / target / linux / ar7-2.6 / files / arch / mips / ar7 / vlynq.c
index 80cb836..c491020 100644 (file)
@@ -117,7 +117,7 @@ static void vlynq_irq_unmask(unsigned int irq)
        BUG_ON(!dev);
        virq = irq - dev->irq_start;
        val = dev->remote->int_device[virq >> 2];
-       val |= VINT_ENABLE << VINT_OFFSET(virq);
+       val |= (VINT_ENABLE | virq) << VINT_OFFSET(virq);
        dev->remote->int_device[virq >> 2] = val;
 }
 
@@ -307,6 +307,8 @@ int vlynq_device_enable(struct vlynq_device *dev)
                if (vlynq_linked(dev)) 
                        return vlynq_setup_irq(dev);
        }
+
+       return -ENODEV;
 }
 
 void vlynq_device_disable(struct vlynq_device *dev)
This page took 0.033222 seconds and 4 git commands to generate.