staging: comedi: ni_670x: remove spurious free_irq() call
authorIan Abbott <abbotti@mev.co.uk>
Fri, 14 Sep 2012 16:34:30 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 12:09:09 +0000 (05:09 -0700)
This driver's comedi `detach` handler (`ni_670x_detach()`) calls
`free_irq()` but the driver doesn't call `request_irq()` anywhere.
Remove the spurious call.

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

index fb83625065f5bd34ab6537adc266119d10772744..eac6dc047bb0a56d3004d822feaa5a7fa8f84681 100644 (file)
@@ -228,7 +228,6 @@ static int __devinit ni_670x_attach_pci(struct comedi_device *dev,
                return ret;
        }
        dev->board_name = thisboard->name;
-       dev->irq = mite_irq(devpriv->mite);
 
        ret = comedi_alloc_subdevices(dev, 2);
        if (ret)
@@ -293,8 +292,6 @@ static void ni_670x_detach(struct comedi_device *dev)
                mite_unsetup(devpriv->mite);
                mite_free(devpriv->mite);
        }
-       if (dev->irq)
-               free_irq(dev->irq, dev);
 }
 
 static struct comedi_driver ni_670x_driver = {