staging: comedi: addi-data: remove 'irq' from the card data
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 31 Oct 2012 23:56:42 +0000 (16:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Nov 2012 15:43:24 +0000 (08:43 -0700)
This information can be found when needed in i_ADDI_Attach() by
using the pci_dev pointer.

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-data/addi_amcc_s5933.h
drivers/staging/comedi/drivers/addi-data/addi_common.c

index b3035b5947dbf4e60f54de79539cfc2b55995096..08b32406e04fc1555b60dccc206e74d799c717f7 100644 (file)
@@ -201,7 +201,6 @@ struct pcilst_struct {
        unsigned char pci_bus;
        unsigned char pci_slot;
        unsigned char pci_func;
-       unsigned int irq;
 };
 
 /* ptr to root list of all amcc devices */
@@ -259,8 +258,6 @@ void v_pci_card_list_init(unsigned short pci_vendor)
                                amcc->pci_bus = pcidev->bus->number;
                                amcc->pci_slot = PCI_SLOT(pcidev->devfn);
                                amcc->pci_func = PCI_FUNC(pcidev->devfn);
-                               amcc->irq = pcidev->irq;
-
                        }
                }
        }
index 249fa9039591ee1cddb3ac5f3aba2f006de48ca5..ae85f64406bdd201dce82dc0409b08d1666499ae 100644 (file)
@@ -177,11 +177,11 @@ static int i_ADDI_Attach(struct comedi_device *dev, struct comedi_devconfig *it)
 
        /* ## */
 
-       if (card->irq > 0) {
-               ret = request_irq(card->irq, v_ADDI_Interrupt, IRQF_SHARED,
+       if (pcidev->irq > 0) {
+               ret = request_irq(pcidev->irq, v_ADDI_Interrupt, IRQF_SHARED,
                                  this_board->pc_DriverName, dev);
                if (ret == 0)
-                       dev->irq = card->irq;
+                       dev->irq = pcidev->irq;
        }
 
        /*  Read eepeom and fill addi_board Structure */