Module: xenomai-3
Branch: next
Commit: ac0ee0ed055b9fecb2c30b3db5e7860e64f52f1a
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=ac0ee0ed055b9fecb2c30b3db5e7860e64f52f1a

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu May  7 11:08:31 2015 +0200

drivers/udd: custom IRQs do not require UDD handler

---

 kernel/drivers/udd/udd.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/drivers/udd/udd.c b/kernel/drivers/udd/udd.c
index c5116d3..4ea7f58 100644
--- a/kernel/drivers/udd/udd.c
+++ b/kernel/drivers/udd/udd.c
@@ -364,7 +364,8 @@ int udd_register_device(struct udd_device *udd)
        if (udd->device_flags & RTDM_PROTOCOL_DEVICE)
                return -EINVAL;
 
-       if (udd->irq != UDD_IRQ_NONE && udd->ops.interrupt == NULL)
+       if (udd->irq != UDD_IRQ_NONE && udd->irq != UDD_IRQ_CUSTOM &&
+           udd->ops.interrupt == NULL)
                return -EINVAL;
 
        for (n = 0, ur->nr_maps = 0; n < UDD_NR_MAPS; n++) {


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to