staging: comedi: addi_apci_16xx: remove interrupt support code
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 18 Jan 2013 17:43:48 +0000 (10:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 20:57:22 +0000 (12:57 -0800)
The boards supported by this driver do not have any interrupt
capable devices. Remove the unused interrupt support code.

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

index e384d4c493e710f001312daab76c9e8ebae6e866..ba4b0b10defc82c78e5eeb226d126a038bcd5b1e 100644 (file)
@@ -35,15 +35,6 @@ static const struct addi_board apci16xx_boardtypes[] = {
        },
 };
 
-static irqreturn_t v_ADDI_Interrupt(int irq, void *d)
-{
-       struct comedi_device *dev = d;
-       const struct addi_board *this_board = comedi_board(dev);
-
-       this_board->interrupt(irq, d);
-       return IRQ_RETVAL(1);
-}
-
 static const void *addi_find_boardinfo(struct comedi_device *dev,
                                       struct pci_dev *pcidev)
 {
@@ -120,15 +111,6 @@ static int apci16xx_auto_attach(struct comedi_device *dev,
        devpriv->s_EeParameters.ui_MinDelaytimeNs =
                this_board->ui_MinDelaytimeNs;
 
-       /* ## */
-
-       if (pcidev->irq > 0) {
-               ret = request_irq(pcidev->irq, v_ADDI_Interrupt, IRQF_SHARED,
-                                 dev->board_name, dev);
-               if (ret == 0)
-                       dev->irq = pcidev->irq;
-       }
-
        n_subdevices = 7;
        ret = comedi_alloc_subdevices(dev, n_subdevices);
        if (ret)
@@ -186,8 +168,6 @@ static void apci16xx_detach(struct comedi_device *dev)
        struct addi_private *devpriv = dev->private;
 
        if (devpriv) {
-               if (dev->irq)
-                       free_irq(dev->irq, dev);
                if (devpriv->dw_AiBase)
                        iounmap(devpriv->dw_AiBase);
        }