X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8c72b797b421258e17ad6f7afcbc2ab9105e8dc8..3f52da61813f2c0ffdd62d663b705ae04f3a74e9:/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c diff --git a/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c b/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c index 80cb836d9..c49102082 100644 --- a/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c +++ b/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c @@ -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)