diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/msi.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 529113dc3e22..55fe83dfd77b 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -193,11 +193,6 @@ static struct msi_desc* alloc_msi_entry(void) | |||
193 | return entry; | 193 | return entry; |
194 | } | 194 | } |
195 | 195 | ||
196 | static void attach_msi_entry(struct msi_desc *entry, int irq) | ||
197 | { | ||
198 | msi_desc[irq] = entry; | ||
199 | } | ||
200 | |||
201 | static int create_msi_irq(void) | 196 | static int create_msi_irq(void) |
202 | { | 197 | { |
203 | struct msi_desc *entry; | 198 | struct msi_desc *entry; |
@@ -491,7 +486,7 @@ static int msi_capability_init(struct pci_dev *dev) | |||
491 | } | 486 | } |
492 | 487 | ||
493 | dev->first_msi_irq = irq; | 488 | dev->first_msi_irq = irq; |
494 | attach_msi_entry(entry, irq); | 489 | msi_desc[irq] = entry; |
495 | /* Set MSI enabled bits */ | 490 | /* Set MSI enabled bits */ |
496 | enable_msi_mode(dev, pos, PCI_CAP_ID_MSI); | 491 | enable_msi_mode(dev, pos, PCI_CAP_ID_MSI); |
497 | 492 | ||
@@ -570,7 +565,7 @@ static int msix_capability_init(struct pci_dev *dev, | |||
570 | break; | 565 | break; |
571 | } | 566 | } |
572 | 567 | ||
573 | attach_msi_entry(entry, irq); | 568 | msi_desc[irq] = entry; |
574 | } | 569 | } |
575 | if (i != nvec) { | 570 | if (i != nvec) { |
576 | int avail = i - 1; | 571 | int avail = i - 1; |