summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-07-06 12:43:06 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2022-07-27 21:36:03 +1000
commit704544588735b2e1115212dbba1c210b3687ff7a (patch)
tree3c3e75bba5a119c48c17372095a252d8165f2fe4 /arch/powerpc/include
parent407a767182d3dc87176aabddd7c109b36a5727e9 (diff)
downloadlinux-stable-704544588735b2e1115212dbba1c210b3687ff7a.tar.gz
linux-stable-704544588735b2e1115212dbba1c210b3687ff7a.tar.bz2
linux-stable-704544588735b2e1115212dbba1c210b3687ff7a.zip
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: Pali Rohár <pali@kernel.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220706104308.5390-4-pali@kernel.org
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/pci-bridge.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pci-bridge.h b/arch/powerpc/include/asm/pci-bridge.h
index 98156932a1f5..e18c95f4e1d4 100644
--- a/arch/powerpc/include/asm/pci-bridge.h
+++ b/arch/powerpc/include/asm/pci-bridge.h
@@ -176,7 +176,9 @@ extern int pci_device_from_OF_node(struct device_node *node,
#endif
#ifndef CONFIG_PPC64
+#ifdef CONFIG_PPC_CHRP
extern void pci_create_OF_bus_map(void);
+#endif
#else /* CONFIG_PPC64 */