]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: pcl812: remove "spurious interrupt" noise
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 4 Mar 2014 18:29:46 +0000 (11:29 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 01:06:13 +0000 (17:06 -0800)
Because this driver is manually attached, the "spurious interrupt"
check in the interrupt handler should never happen. The interrupt is
only hooked up during the attach and it's released during the detach.

Leave the check but remove the noise. Also make sure to clear the
interrupt request in the hardware.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcl812.c

index 8fa4d47a0f9a0f9265fa6c0e9d58eefec21d1ef0..ec92e12cacc705b01ab42fc86318cdcb4cbfc1e8 100644 (file)
@@ -993,7 +993,7 @@ static irqreturn_t interrupt_pcl812(int irq, void *d)
        struct pcl812_private *devpriv = dev->private;
 
        if (!dev->attached) {
-               comedi_error(dev, "spurious interrupt");
+               outb(0, dev->iobase + PCL812_CLRINT);
                return IRQ_HANDLED;
        }
        if (devpriv->ai_dma)