From: Pali Rohár Date: Sun, 9 Apr 2023 00:08:11 +0000 (+0200) Subject: powerpc/86xx: mpc86xx_hpcn: Call uli_init() instead of explicit ppc_md assignment X-Git-Tag: v6.6.17~4976^2~84 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40b221daf17bf8e0f27c7f1ffc8d5179d58e8597;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Michael Ellerman Link: https://msgid.link/20230409000812.18904-8-pali@kernel.org --- diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index 645125c..8121106 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(); }