diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-04-06 23:09:47 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-06-07 19:08:43 -0400 |
commit | 64099d981c9916ec4a485b3ffbb89fa877fc595f (patch) | |
tree | 363409e3a5bafdbbfbeffe6f93f1c2338f1c893b /arch/x86/include/asm/prom.h | |
parent | 3d5fe5a65af9c0b609d6e26b8d63fe5923c4e512 (diff) |
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.h | 5 |
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); | |||
31 | void __cpuinit x86_of_pci_init(void); | 31 | void __cpuinit x86_of_pci_init(void); |
32 | void x86_dtb_init(void); | 32 | void x86_dtb_init(void); |
33 | 33 | ||
34 | static inline struct device_node *pci_device_to_OF_node(struct pci_dev *pdev) | ||
35 | { | ||
36 | return pdev ? pdev->dev.of_node : NULL; | ||
37 | } | ||
38 | |||
39 | static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) | 34 | static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) |
40 | { | 35 | { |
41 | return pci_device_to_OF_node(bus->self); | 36 | return pci_device_to_OF_node(bus->self); |