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

Commit c9438aff authored by Kumar Gala's avatar Kumar Gala
Browse files

[POWERPC] Use for_each_ matching routinues for pci PHBs



On the Freescale embedded (83xx, 85xx, 86xx) and a few of the discrete
bridges (mpc10x, tsi108) use the new for_each_compatible_node() or
for_each_node_by_type() to provide more exact matching when looking for
PHBs in the device tree.

With the previous code it was possible to match on pci bridges since
we were only matching on device_type.

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 2fce1225
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ static void __init mpc8313_rdb_setup_arch(void)
		ppc_md.progress("mpc8313_rdb_setup_arch()", 0);

#ifdef CONFIG_PCI
	for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)
	for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
		mpc83xx_add_bridge(np);
#endif
	mpc831x_usb_cfg();
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ static void __init mpc832x_sys_setup_arch(void)
	}

#ifdef CONFIG_PCI
	for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)
	for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
		mpc83xx_add_bridge(np);
#endif

+1 −1
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ static void __init mpc832x_rdb_setup_arch(void)
		ppc_md.progress("mpc832x_rdb_setup_arch()", 0);

#ifdef CONFIG_PCI
	for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)
	for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
		mpc83xx_add_bridge(np);
#endif

+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ static void __init mpc834x_itx_setup_arch(void)
		ppc_md.progress("mpc834x_itx_setup_arch()", 0);

#ifdef CONFIG_PCI
	for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)
	for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
		mpc83xx_add_bridge(np);
#endif

+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ static void __init mpc834x_mds_setup_arch(void)
		ppc_md.progress("mpc834x_mds_setup_arch()", 0);

#ifdef CONFIG_PCI
	for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)
	for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
		mpc83xx_add_bridge(np);
#endif

Loading