Skip to content

Commit

Permalink
powerpc/pci: Hide pci_create_OF_bus_map() for non-chrp code
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Pali Rohár authored and Michael Ellerman committed Jul 27, 2022
1 parent 407a767 commit 7045445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/include/asm/pci-bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/pci_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
#endif

#ifdef CONFIG_PPC_CHRP
/* We create the "pci-OF-bus-map" property now so it appears in the
* /proc device tree
*/
Expand All @@ -218,6 +219,7 @@ pci_create_OF_bus_map(void)
of_node_put(dn);
}
}
#endif

void pcibios_setup_phb_io_space(struct pci_controller *hose)
{
Expand Down

0 comments on commit 7045445

Please sign in to comment.