diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2023-04-09 03:08:05 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-04-20 03:20:49 +0300 |
commit | 821b3a471f686910b97228010861c4a99d07fd86 (patch) | |
tree | acbafe9d565c3370ae5e87e3c9d450f255938729 /arch/powerpc/platforms/86xx | |
parent | 648a1783fe2551f5a091c9a5f8f463cb2cbf8745 (diff) | |
download | linux-821b3a471f686910b97228010861c4a99d07fd86.tar.xz |
powerpc/fsl_uli1575: Misc cleanup
Use a single line for uli_exclude_device().
Add uli_exclude_device() prototype in ppc-pci.h and guard it.
Remove that prototype from mpc85xx_ds.c and mpc86xx_hpcn.c files.
Make uli_pirq_to_irq[] static as it is used only in that file.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230409000812.18904-2-pali@kernel.org
Diffstat (limited to 'arch/powerpc/platforms/86xx')
-rw-r--r-- | arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index 7b00ebd2d7f8..3dbd396a0df5 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c @@ -22,6 +22,7 @@ #include <mm/mmu_decl.h> #include <asm/udbg.h> #include <asm/swiotlb.h> +#include <asm/ppc-pci.h> #include <asm/mpic.h> @@ -39,9 +40,6 @@ #endif #ifdef CONFIG_PCI -extern int uli_exclude_device(struct pci_controller *hose, - u_char bus, u_char devfn); - static int mpc86xx_exclude_device(struct pci_controller *hose, u_char bus, u_char devfn) { |