Support for digital io commands could be added, except I can't see why
anyone would want to use them
What happens if device we are emulating for is de-configured?
- Make it work from kernel space (fix problems with comedi_switch_to_rt() etc.)
*/
/* step 4: fix up and arguments */
- /* TRIG_RT flag will cause a null dereference, since this is a weird driver
- * so zero it! */
- if(cmd->flags & TRIG_RT)
- {
- cmd->flags &= ~TRIG_RT;
- err++;
- }
-
if(err)return 4;
return 0;
{
struct comedi_irq_struct *it=comedi_irqs[dev->irq];
+ if(it == NULL)
+ return;
+
spin_lock_irq(&dev->spinlock);
RT_protect();
sti();
{
struct comedi_irq_struct *it=comedi_irqs[dev->irq];
+ if(it == NULL)
+ return;
+
RT_spin_lock_irq(&dev->spinlock);
dev->rt--;