aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/msi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/msi.c')
-rw-r--r--drivers/pci/msi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
index 55ff52df5fe7..f8105783da2f 100644
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi.c
@@ -35,7 +35,7 @@ static int nr_msix_devices;
35 35
36#ifndef CONFIG_X86_IO_APIC 36#ifndef CONFIG_X86_IO_APIC
37int vector_irq[NR_VECTORS] = { [0 ... NR_VECTORS - 1] = -1}; 37int vector_irq[NR_VECTORS] = { [0 ... NR_VECTORS - 1] = -1};
38u8 irq_vector[NR_IRQ_VECTORS] = { FIRST_DEVICE_VECTOR , 0 }; 38u8 irq_vector[NR_IRQ_VECTORS];
39#endif 39#endif
40 40
41static struct msi_ops *msi_ops; 41static struct msi_ops *msi_ops;
@@ -383,6 +383,10 @@ static int msi_init(void)
383 return status; 383 return status;
384 } 384 }
385 385
386#ifndef CONFIG_X86_IO_APIC
387 irq_vector[0] = FIRST_DEVICE_VECTOR;
388#endif
389
386 if (last_alloc_vector < 0) { 390 if (last_alloc_vector < 0) {
387 pci_msi_enable = 0; 391 pci_msi_enable = 0;
388 printk(KERN_WARNING "PCI: No interrupt vectors available for MSI\n"); 392 printk(KERN_WARNING "PCI: No interrupt vectors available for MSI\n");