Commit 40b221da authored by Pali Rohár's avatar Pali Rohár Committed by Michael Ellerman

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: default avatarPali Rohár <pali@kernel.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230409000812.18904-8-pali@kernel.org
parent 22fdf791
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment