pci/of: Consolidate pci_device_to_OF_node()
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 7 Apr 2011 03:09:47 +0000 (13:09 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 7 Jun 2011 23:08:43 +0000 (09:08 +1000)
commit64099d981c9916ec4a485b3ffbb89fa877fc595f
tree363409e3a5bafdbbfbeffe6f93f1c2338f1c893b
parent3d5fe5a65af9c0b609d6e26b8d63fe5923c4e512
pci/of: Consolidate pci_device_to_OF_node()

All archs do more or less the same thing now, move it into
a single generic place.

I chose pci.h rather than of_pci.h to avoid having to change
all call-sites to include the later.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Michal Simek <monstr@monstr.eu>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/microblaze/include/asm/pci-bridge.h
arch/powerpc/include/asm/pci-bridge.h
arch/sparc/include/asm/pci_32.h
arch/sparc/include/asm/pci_64.h
arch/sparc/kernel/pci.c
arch/sparc/kernel/pcic.c
arch/x86/include/asm/prom.h
include/linux/pci.h