Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fff69fd0 authored by Kevin Hao's avatar Kevin Hao Committed by Scott Wood
Browse files

powerpc/83xx: factor out the common codes of setup arch functions



Factor out the common codes of setup arch functions to a separate
function. It does make no sense to print a board specific info
in setup arch functions, so use a more general one.

For ASP8347E board, there is no pci device node. So it is safe to
invoke mpc83xx_setup_pci() in its setup arch function even there is
no such invocation in its original setup arch function.

Signed-off-by: default avatarKevin Hao <haokexin@gmail.com>
Signed-off-by: default avatarScott Wood <oss@buserror.net>
parent 4d486e00
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -30,9 +30,7 @@
 */
static void __init asp834x_setup_arch(void)
{
	if (ppc_md.progress)
		ppc_md.progress("asp834x_setup_arch()", 0);

	mpc83xx_setup_arch();
	mpc834x_usb_cfg();
}

+1 −4
Original line number Diff line number Diff line
@@ -130,10 +130,7 @@ static void __init mpc83xx_km_setup_arch(void)
	struct device_node *np;
#endif

	if (ppc_md.progress)
		ppc_md.progress("kmpbec83xx_setup_arch()", 0);

	mpc83xx_setup_pci();
	mpc83xx_setup_arch();

#ifdef CONFIG_QUICC_ENGINE
	np = of_find_node_by_name(NULL, "par_io");
+8 −0
Original line number Diff line number Diff line
@@ -142,3 +142,11 @@ void __init mpc83xx_setup_pci(void)
		mpc83xx_add_bridge(np);
}
#endif

void __init mpc83xx_setup_arch(void)
{
	if (ppc_md.progress)
		ppc_md.progress("mpc83xx_setup_arch()", 0);

	mpc83xx_setup_pci();
}
+1 −4
Original line number Diff line number Diff line
@@ -27,10 +27,7 @@
 */
static void __init mpc830x_rdb_setup_arch(void)
{
	if (ppc_md.progress)
		ppc_md.progress("mpc830x_rdb_setup_arch()", 0);

	mpc83xx_setup_pci();
	mpc83xx_setup_arch();
	mpc831x_usb_cfg();
}

+1 −4
Original line number Diff line number Diff line
@@ -28,10 +28,7 @@
 */
static void __init mpc831x_rdb_setup_arch(void)
{
	if (ppc_md.progress)
		ppc_md.progress("mpc831x_rdb_setup_arch()", 0);

	mpc83xx_setup_pci();
	mpc83xx_setup_arch();
	mpc831x_usb_cfg();
}

Loading