diff options
author | Pali Rohár <pali@kernel.org> | 2023-04-09 03:08:11 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-04-20 03:20:50 +0300 |
commit | 40b221daf17bf8e0f27c7f1ffc8d5179d58e8597 (patch) | |
tree | 1b8a25c4f0e8392ac609fb220da03f79a56cbd9f | |
parent | 22fdf79171e8509db54599fd2c05ef0022ee83f5 (diff) | |
download | linux-40b221daf17bf8e0f27c7f1ffc8d5179d58e8597.tar.xz |
powerpc/86xx: mpc86xx_hpcn: Call uli_init() instead of explicit ppc_md assignment
After calling fsl_pci_assign_primary(), it is possible to use uli_init() to
conditionally initialize ppc_md.pci_exclude_device callback based on the
uli1575 detection.
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230409000812.18904-8-pali@kernel.org
-rw-r--r-- | arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index 645125cc8420..812110673d88 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c @@ -46,10 +46,6 @@ mpc86xx_hpcn_setup_arch(void) if (ppc_md.progress) ppc_md.progress("mpc86xx_hpcn_setup_arch()", 0); -#ifdef CONFIG_PCI - ppc_md.pci_exclude_device = uli_exclude_device; -#endif - printk("MPC86xx HPCN board from Freescale Semiconductor\n"); #ifdef CONFIG_SMP @@ -57,6 +53,7 @@ mpc86xx_hpcn_setup_arch(void) #endif fsl_pci_assign_primary(); + uli_init(); swiotlb_detect_4g(); } |