#include <linux/module.h>
#include <linux/sched.h>
#include <linux/mm.h>
-#include <linux/slab.h>
+#include <linux/malloc.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/delay.h>
spin_lock(&dev->spinlock);
status = inb(dev->iobase + DAS1800_STATUS);
+ /* clear interrupt */
+ outb(FNE, dev->iobase + DAS1800_STATUS);
+
/* if interrupt was not caused by das-1800 */
if(!(status & INT))
{
comedi_error(dev, "spurious interrupt");
+ rt_printk("status 0x%x\n", status);
spin_unlock(&dev->spinlock);
return;
}
das1800_ai_handler(dev, status);
- /* clear interrupt */
- outb(FNE, dev->iobase + DAS1800_STATUS);
-
spin_unlock(&dev->spinlock);
}