diff options
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_core.c')
-rw-r--r-- | drivers/pci/hotplug/ibmphp_core.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/hotplug/ibmphp_core.c index 3efaf4c38528..d261e623541f 100644 --- a/drivers/pci/hotplug/ibmphp_core.c +++ b/drivers/pci/hotplug/ibmphp_core.c | |||
@@ -155,13 +155,10 @@ int ibmphp_init_devno(struct slot **cur_slot) | |||
155 | for (loop = 0; loop < len; loop++) { | 155 | for (loop = 0; loop < len; loop++) { |
156 | if ((*cur_slot)->number == rtable->slots[loop].slot && | 156 | if ((*cur_slot)->number == rtable->slots[loop].slot && |
157 | (*cur_slot)->bus == rtable->slots[loop].bus) { | 157 | (*cur_slot)->bus == rtable->slots[loop].bus) { |
158 | struct io_apic_irq_attr irq_attr; | ||
159 | |||
160 | (*cur_slot)->device = PCI_SLOT(rtable->slots[loop].devfn); | 158 | (*cur_slot)->device = PCI_SLOT(rtable->slots[loop].devfn); |
161 | for (i = 0; i < 4; i++) | 159 | for (i = 0; i < 4; i++) |
162 | (*cur_slot)->irq[i] = IO_APIC_get_PCI_irq_vector((int) (*cur_slot)->bus, | 160 | (*cur_slot)->irq[i] = IO_APIC_get_PCI_irq_vector((int) (*cur_slot)->bus, |
163 | (int) (*cur_slot)->device, i, | 161 | (int) (*cur_slot)->device, i); |
164 | &irq_attr); | ||
165 | 162 | ||
166 | debug("(*cur_slot)->irq[0] = %x\n", | 163 | debug("(*cur_slot)->irq[0] = %x\n", |
167 | (*cur_slot)->irq[0]); | 164 | (*cur_slot)->irq[0]); |