powerpc/eeh: Create eeh_dev from pci_dn instead of device_node
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 17 Mar 2015 05:15:05 +0000 (16:15 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Mar 2015 02:15:51 +0000 (13:15 +1100)
commite8e9b34cef237d4d6fdc0d350cd8a95d1adb9ee9
treeaa6d7d2300e27e621af79b4a252ee9aa93a4a893
parentc035ff1d2eaa03ab40839041e955a86a8e412eb4
powerpc/eeh: Create eeh_dev from pci_dn instead of device_node

The patch adds function traverse_pci_dn(), which is similar to
traverse_pci_devices() except it takes pci_dn, not device_node
as parameter. The pci_dev.c has been reworked to create eeh_dev
from pci_dn, instead of device_node.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/eeh.h
arch/powerpc/include/asm/pci-bridge.h
arch/powerpc/include/asm/ppc-pci.h
arch/powerpc/kernel/eeh_dev.c
arch/powerpc/kernel/pci_dn.c
arch/powerpc/platforms/pseries/setup.c