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>
unsigned char pci_bus;
unsigned char pci_slot;
unsigned char pci_func;
- unsigned int irq;
};
/* ptr to root list of all amcc devices */
amcc->pci_bus = pcidev->bus->number;
amcc->pci_slot = PCI_SLOT(pcidev->devfn);
amcc->pci_func = PCI_FUNC(pcidev->devfn);
- amcc->irq = pcidev->irq;
-
}
}
}
/* ## */
- 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 */