Commit 70454458 authored by Pali Rohár's avatar Pali Rohár Committed by Michael Ellerman

powerpc/pci: Hide pci_create_OF_bus_map() for non-chrp code

Function pci_create_OF_bus_map() is used only in chrp code.
So hide it from all other platforms.
Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220706104308.5390-4-pali@kernel.org
parent 407a7671
...@@ -176,7 +176,9 @@ extern int pci_device_from_OF_node(struct device_node *node, ...@@ -176,7 +176,9 @@ extern int pci_device_from_OF_node(struct device_node *node,
#endif #endif
#ifndef CONFIG_PPC64 #ifndef CONFIG_PPC64
#ifdef CONFIG_PPC_CHRP
extern void pci_create_OF_bus_map(void); extern void pci_create_OF_bus_map(void);
#endif
#else /* CONFIG_PPC64 */ #else /* CONFIG_PPC64 */
......
...@@ -194,6 +194,7 @@ int pci_device_from_OF_node(struct device_node *node, u8 *bus, u8 *devfn) ...@@ -194,6 +194,7 @@ int pci_device_from_OF_node(struct device_node *node, u8 *bus, u8 *devfn)
EXPORT_SYMBOL(pci_device_from_OF_node); EXPORT_SYMBOL(pci_device_from_OF_node);
#endif #endif
#ifdef CONFIG_PPC_CHRP
/* We create the "pci-OF-bus-map" property now so it appears in the /* We create the "pci-OF-bus-map" property now so it appears in the
* /proc device tree * /proc device tree
*/ */
...@@ -218,6 +219,7 @@ pci_create_OF_bus_map(void) ...@@ -218,6 +219,7 @@ pci_create_OF_bus_map(void)
of_node_put(dn); of_node_put(dn);
} }
} }
#endif
void pcibios_setup_phb_io_space(struct pci_controller *hose) void pcibios_setup_phb_io_space(struct pci_controller *hose)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment