From 776d5b5c44d7f9c8bb21c7f75b82fb959cc62446 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Tue, 4 Mar 2014 11:29:46 -0700 Subject: [PATCH] staging: comedi: pcl812: remove "spurious interrupt" noise 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl812.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/pcl812.c b/drivers/staging/comedi/drivers/pcl812.c index 8fa4d47a0f9a..ec92e12cacc7 100644 --- a/drivers/staging/comedi/drivers/pcl812.c +++ b/drivers/staging/comedi/drivers/pcl812.c @@ -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) -- 2.30.2