|
@@ -1200,14 +1200,12 @@ static int pirq_enable_irq(struct pci_dev *dev)
|
|
#ifdef CONFIG_X86_IO_APIC
|
|
#ifdef CONFIG_X86_IO_APIC
|
|
struct pci_dev *temp_dev;
|
|
struct pci_dev *temp_dev;
|
|
int irq;
|
|
int irq;
|
|
- struct io_apic_irq_attr irq_attr;
|
|
|
|
|
|
|
|
if (dev->irq_managed && dev->irq > 0)
|
|
if (dev->irq_managed && dev->irq > 0)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
irq = IO_APIC_get_PCI_irq_vector(dev->bus->number,
|
|
irq = IO_APIC_get_PCI_irq_vector(dev->bus->number,
|
|
- PCI_SLOT(dev->devfn),
|
|
|
|
- pin - 1, &irq_attr);
|
|
|
|
|
|
+ PCI_SLOT(dev->devfn), pin - 1);
|
|
/*
|
|
/*
|
|
* Busses behind bridges are typically not listed in the MP-table.
|
|
* Busses behind bridges are typically not listed in the MP-table.
|
|
* In this case we have to look up the IRQ based on the parent bus,
|
|
* In this case we have to look up the IRQ based on the parent bus,
|
|
@@ -1221,7 +1219,7 @@ static int pirq_enable_irq(struct pci_dev *dev)
|
|
pin = pci_swizzle_interrupt_pin(dev, pin);
|
|
pin = pci_swizzle_interrupt_pin(dev, pin);
|
|
irq = IO_APIC_get_PCI_irq_vector(bridge->bus->number,
|
|
irq = IO_APIC_get_PCI_irq_vector(bridge->bus->number,
|
|
PCI_SLOT(bridge->devfn),
|
|
PCI_SLOT(bridge->devfn),
|
|
- pin - 1, &irq_attr);
|
|
|
|
|
|
+ pin - 1);
|
|
if (irq >= 0)
|
|
if (irq >= 0)
|
|
dev_warn(&dev->dev, "using bridge %s "
|
|
dev_warn(&dev->dev, "using bridge %s "
|
|
"INT %c to get IRQ %d\n",
|
|
"INT %c to get IRQ %d\n",
|