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;
}
if (vlynq_linked(dev))
return vlynq_setup_irq(dev);
}
+
+ return -ENODEV;
}
void vlynq_device_disable(struct vlynq_device *dev)