summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/prom.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-04-07 05:09:47 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-06-08 01:08:43 +0200
commit64099d981c9916ec4a485b3ffbb89fa877fc595f (patch)
tree363409e3a5bafdbbfbeffe6f93f1c2338f1c893b /arch/x86/include/asm/prom.h
parentx86/devicetree: Use generic PCI <-> OF matching (diff)
downloadlinux-64099d981c9916ec4a485b3ffbb89fa877fc595f.tar.xz
linux-64099d981c9916ec4a485b3ffbb89fa877fc595f.zip
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>
Diffstat (limited to 'arch/x86/include/asm/prom.h')
-rw-r--r--arch/x86/include/asm/prom.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/include/asm/prom.h b/arch/x86/include/asm/prom.h
index 971e0b46446e..dd6066a56346 100644
--- a/arch/x86/include/asm/prom.h
+++ b/arch/x86/include/asm/prom.h
@@ -31,11 +31,6 @@ extern void x86_add_irq_domains(void);
void __cpuinit x86_of_pci_init(void);
void x86_dtb_init(void);
-static inline struct device_node *pci_device_to_OF_node(struct pci_dev *pdev)
-{
- return pdev ? pdev->dev.of_node : NULL;
-}
-
static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus)
{
return pci_device_to_OF_node(bus->self);