diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-01-28 20:47:52 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-08 00:50:08 +0100 |
commit | 1c659d61cfbd8dc3926688c1bbf12d80f4cfb5c2 (patch) | |
tree | a6ebfbd4a52bcf3e63a84e1ef04e5356c55e9e93 /drivers/pci | |
parent | msi: Fix msi_remove_pci_irq_vectors. (diff) | |
download | linux-1c659d61cfbd8dc3926688c1bbf12d80f4cfb5c2.tar.xz linux-1c659d61cfbd8dc3926688c1bbf12d80f4cfb5c2.zip |
msi: Remove attach_msi_entry.
The attach_msi_entry has been reduced to a single simple assignment,
so for simplicity remove the abstraction and directory perform the
assignment.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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) return entry; } -static void attach_msi_entry(struct msi_desc *entry, int irq) -{ - msi_desc[irq] = entry; -} - static int create_msi_irq(void) { struct msi_desc *entry; @@ -491,7 +486,7 @@ static int msi_capability_init(struct pci_dev *dev) } dev->first_msi_irq = irq; - attach_msi_entry(entry, irq); + msi_desc[irq] = entry; /* Set MSI enabled bits */ enable_msi_mode(dev, pos, PCI_CAP_ID_MSI); @@ -570,7 +565,7 @@ static int msix_capability_init(struct pci_dev *dev, break; } - attach_msi_entry(entry, irq); + msi_desc[irq] = entry; } if (i != nvec) { int avail = i - 1; |