powerpc/pci: Fix PCI<->OF matching of old style multifunc devices
authorTom Arbuckle <tom.d.arbuckle@gmail.com>
Wed, 11 Feb 2009 10:41:48 +0000 (10:41 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 22 Feb 2009 23:48:57 +0000 (10:48 +1100)
commitf81786913aa0ca27a3230f30d099e9613d0d7973
tree2431bff1643e0105985fd00bc68ddea428782cd7
parent16c57b3620d77e0bc981da5ef32beae730512684
powerpc/pci: Fix PCI<->OF matching of old style multifunc devices

Old OF variants used to create a 'dummy' parent node "multifunc-device"
for devices with more than one PCI function. Our code that matches OF
nodes to PCI devices dealt with that in one place but not in another,
this fixes it.

This has the practical effect of fixing interrupt routing of multifunction
PCI cards on some older PowerMac machines.

Signed-off-by: Tom Arbuckle <tom.d.arbuckle@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/pci_32.c