diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2007-04-05 17:19:10 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-05-02 19:02:37 -0700 |
commit | 4aa9bc955d61fdf03b5f9cee67db188fe1ffa8b7 (patch) | |
tree | bd0604f5d7308d63cafbb1e3134580e284d86a50 /drivers/pci/probe.c | |
parent | bab41e9be75121c473b00df2ffa33af3c44066a7 (diff) | |
download | blackbird-op-linux-4aa9bc955d61fdf03b5f9cee67db188fe1ffa8b7.tar.gz blackbird-op-linux-4aa9bc955d61fdf03b5f9cee67db188fe1ffa8b7.zip |
MSI: Use a list instead of the custom link structure
The msi descriptors are linked together with what looks a lot like
a linked list, but isn't a struct list_head list. Make it one.
The only complication is that previously we walked a list of irqs, and
got the descriptor for each with get_irq_msi(). Now we have a list of
descriptors and need to get the irq out of it, so it needs to be in the
actual struct msi_desc. We use 0 to indicate no irq is setup.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index c659f8ae441a..e48fcf089621 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -857,6 +857,8 @@ struct pci_dev *alloc_pci_dev(void) INIT_LIST_HEAD(&dev->global_list); INIT_LIST_HEAD(&dev->bus_list); + pci_msi_init_pci_dev(dev); + return dev; } EXPORT_SYMBOL(alloc_pci_dev); |