I broke it in the previous commit.
authorIan Abbott <abbotti@mev.co.uk>
Thu, 10 Apr 2008 17:18:11 +0000 (17:18 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 10 Apr 2008 17:18:11 +0000 (17:18 +0000)
comedi/drivers/amplc_pc236.c

index 4224f46982ad59d194010e1045d64646f9193b3f..a1e5e695daec2202e9464aa8accbd0aa04316706 100644 (file)
@@ -452,6 +452,7 @@ static int pc236_intr_check(comedi_device * dev)
        comedi_spin_lock_irqsave(&dev->spinlock, flags);
        if (devpriv->enable_irq) {
                retval = 1;
+#ifdef CONFIG_COMEDI_PCI
                if (devpriv->lcr_iobase) {
                        if ((inl(devpriv->lcr_iobase + PLX9052_INTCSR)
                                        & PLX9052_INTCSR_LI1STAT_MASK)
@@ -463,6 +464,7 @@ static int pc236_intr_check(comedi_device * dev)
                                        devpriv->lcr_iobase + PLX9052_INTCSR);
                        }
                }
+#endif
        }
        comedi_spin_unlock_irqrestore(&dev->spinlock, flags);