aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/83xx/sbc834x.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-11-17 09:48:48 -0500
committerKumar Gala <galak@kernel.crashing.org>2011-11-24 03:01:40 -0500
commitbede480d45f7257fa648b4c32a0549cfcca59b90 (patch)
tree54153884a9cf0d53f3b1ea556f39f6f8b97df92f /arch/powerpc/platforms/83xx/sbc834x.c
parent7669d58c661b51f3c2b6bf0e93f230f0f7c2f597 (diff)
powerpc/83xx: merge PCI bridge additions
Nearly all mpc83xx-based boards have a common piece of code - one that loops over all pci/pcie bridges and registers them. Merge that code into a special function common to all boards. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx/sbc834x.c')
-rw-r--r--arch/powerpc/platforms/83xx/sbc834x.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/83xx/sbc834x.c b/arch/powerpc/platforms/83xx/sbc834x.c
index 22faaa1c1073..1c3dfc8556f0 100644
--- a/arch/powerpc/platforms/83xx/sbc834x.c
+++ b/arch/powerpc/platforms/83xx/sbc834x.c
@@ -48,18 +48,10 @@
48 */ 48 */
49static void __init sbc834x_setup_arch(void) 49static void __init sbc834x_setup_arch(void)
50{ 50{
51#ifdef CONFIG_PCI
52 struct device_node *np;
53#endif
54
55 if (ppc_md.progress) 51 if (ppc_md.progress)
56 ppc_md.progress("sbc834x_setup_arch()", 0); 52 ppc_md.progress("sbc834x_setup_arch()", 0);
57 53
58#ifdef CONFIG_PCI 54 mpc83xx_setup_pci();
59 for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
60 mpc83xx_add_bridge(np);
61#endif
62
63} 55}
64 56
65machine_device_initcall(sbc834x, mpc83xx_declare_of_platform_devices); 57machine_device_initcall(sbc834x, mpc83xx_declare_of_platform_devices);