MSI: Use a list instead of the custom link structure
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 5 Apr 2007 07:19:10 +0000 (17:19 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 May 2007 02:02:37 +0000 (19:02 -0700)
commit4aa9bc955d61fdf03b5f9cee67db188fe1ffa8b7
treebd0604f5d7308d63cafbb1e3134580e284d86a50
parentbab41e9be75121c473b00df2ffa33af3c44066a7
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>
drivers/pci/msi.c
drivers/pci/pci.h
drivers/pci/probe.c
include/linux/msi.h
include/linux/pci.h