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

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
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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();
}