diff options
-rw-r--r-- | arch/microblaze/include/asm/pci-bridge.h | 5 | ||||
-rw-r--r-- | arch/powerpc/include/asm/pci-bridge.h | 5 | ||||
-rw-r--r-- | arch/x86/include/asm/prom.h | 6 | ||||
-rw-r--r-- | include/linux/pci.h | 5 |
4 files changed, 5 insertions, 16 deletions
diff --git a/arch/microblaze/include/asm/pci-bridge.h b/arch/microblaze/include/asm/pci-bridge.h index 0d74d031e2a3..242be57a319c 100644 --- a/arch/microblaze/include/asm/pci-bridge.h +++ b/arch/microblaze/include/asm/pci-bridge.h | |||
@@ -102,11 +102,6 @@ struct pci_controller { | |||
102 | }; | 102 | }; |
103 | 103 | ||
104 | #ifdef CONFIG_PCI | 104 | #ifdef CONFIG_PCI |
105 | static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) | ||
106 | { | ||
107 | return bus->dev.of_node; | ||
108 | } | ||
109 | |||
110 | static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus) | 105 | static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus) |
111 | { | 106 | { |
112 | return bus->sysdata; | 107 | return bus->sysdata; |
diff --git a/arch/powerpc/include/asm/pci-bridge.h b/arch/powerpc/include/asm/pci-bridge.h index 578060ef99ad..90bd3ed48165 100644 --- a/arch/powerpc/include/asm/pci-bridge.h +++ b/arch/powerpc/include/asm/pci-bridge.h | |||
@@ -169,11 +169,6 @@ static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus) | |||
169 | return bus->sysdata; | 169 | return bus->sysdata; |
170 | } | 170 | } |
171 | 171 | ||
172 | static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) | ||
173 | { | ||
174 | return bus->dev.of_node; | ||
175 | } | ||
176 | |||
177 | #ifndef CONFIG_PPC64 | 172 | #ifndef CONFIG_PPC64 |
178 | 173 | ||
179 | extern int pci_device_from_OF_node(struct device_node *node, | 174 | extern int pci_device_from_OF_node(struct device_node *node, |
diff --git a/arch/x86/include/asm/prom.h b/arch/x86/include/asm/prom.h index dd6066a56346..df1287019e6d 100644 --- a/arch/x86/include/asm/prom.h +++ b/arch/x86/include/asm/prom.h | |||
@@ -30,12 +30,6 @@ extern void add_dtb(u64 data); | |||
30 | extern void x86_add_irq_domains(void); | 30 | 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 | |||
34 | static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) | ||
35 | { | ||
36 | return pci_device_to_OF_node(bus->self); | ||
37 | } | ||
38 | |||
39 | #else | 33 | #else |
40 | static inline void add_dtb(u64 data) { } | 34 | static inline void add_dtb(u64 data) { } |
41 | static inline void x86_add_irq_domains(void) { } | 35 | static inline void x86_add_irq_domains(void) { } |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 795e6a56d8cd..2d292182dde5 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1605,6 +1605,11 @@ static inline struct device_node *pci_device_to_OF_node(struct pci_dev *pdev) | |||
1605 | return pdev ? pdev->dev.of_node : NULL; | 1605 | return pdev ? pdev->dev.of_node : NULL; |
1606 | } | 1606 | } |
1607 | 1607 | ||
1608 | static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) | ||
1609 | { | ||
1610 | return bus ? bus->dev.of_node : NULL; | ||
1611 | } | ||
1612 | |||
1608 | #else /* CONFIG_OF */ | 1613 | #else /* CONFIG_OF */ |
1609 | static inline void pci_set_of_node(struct pci_dev *dev) { } | 1614 | static inline void pci_set_of_node(struct pci_dev *dev) { } |
1610 | static inline void pci_release_of_node(struct pci_dev *dev) { } | 1615 | static inline void pci_release_of_node(struct pci_dev *dev) { } |