diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-11-17 09:48:48 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-11-24 03:01:40 -0500 |
commit | bede480d45f7257fa648b4c32a0549cfcca59b90 (patch) | |
tree | 54153884a9cf0d53f3b1ea556f39f6f8b97df92f /arch/powerpc/platforms/83xx/mpc837x_rdb.c | |
parent | 7669d58c661b51f3c2b6bf0e93f230f0f7c2f597 (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/mpc837x_rdb.c')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc837x_rdb.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc837x_rdb.c b/arch/powerpc/platforms/83xx/mpc837x_rdb.c index a4a5336d1143..16c9c9cbbb7f 100644 --- a/arch/powerpc/platforms/83xx/mpc837x_rdb.c +++ b/arch/powerpc/platforms/83xx/mpc837x_rdb.c | |||
@@ -50,19 +50,10 @@ static void mpc837x_rdb_sd_cfg(void) | |||
50 | */ | 50 | */ |
51 | static void __init mpc837x_rdb_setup_arch(void) | 51 | static void __init mpc837x_rdb_setup_arch(void) |
52 | { | 52 | { |
53 | #ifdef CONFIG_PCI | ||
54 | struct device_node *np; | ||
55 | #endif | ||
56 | |||
57 | if (ppc_md.progress) | 53 | if (ppc_md.progress) |
58 | ppc_md.progress("mpc837x_rdb_setup_arch()", 0); | 54 | ppc_md.progress("mpc837x_rdb_setup_arch()", 0); |
59 | 55 | ||
60 | #ifdef CONFIG_PCI | 56 | mpc83xx_setup_pci(); |
61 | for_each_compatible_node(np, "pci", "fsl,mpc8349-pci") | ||
62 | mpc83xx_add_bridge(np); | ||
63 | for_each_compatible_node(np, "pci", "fsl,mpc8314-pcie") | ||
64 | mpc83xx_add_bridge(np); | ||
65 | #endif | ||
66 | mpc837x_usb_cfg(); | 57 | mpc837x_usb_cfg(); |
67 | mpc837x_rdb_sd_cfg(); | 58 | mpc837x_rdb_sd_cfg(); |
68 | } | 59 | } |