summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/52xx/lite5200.c
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2007-11-10 04:11:56 +1100
committerGrant Likely <grant.likely@secretlab.ca>2008-01-18 09:30:07 -0700
commitf584bc65ca9b9a4c21cc17bb01883874e2e6df0a (patch)
treee90c2c73b127d2cf2e187a269a80daa0ca9b710d /arch/powerpc/platforms/52xx/lite5200.c
parenta6f024bbbef1f529cd6bee57f3ff576139e6f8d7 (diff)
downloadlinux-f584bc65ca9b9a4c21cc17bb01883874e2e6df0a.tar.gz
linux-f584bc65ca9b9a4c21cc17bb01883874e2e6df0a.tar.bz2
linux-f584bc65ca9b9a4c21cc17bb01883874e2e6df0a.zip
[POWERPC] mpc5200: Add common mpc52xx_setup_pci() routine
This patch moves a generic pci init code from lite5200 platform file to a common mpc52xx_setup_pci() routine and adds additional compatibility property verification. Signed-off-by: Marian Balakowicz <m8@semihalf.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/platforms/52xx/lite5200.c')
-rw-r--r--arch/powerpc/platforms/52xx/lite5200.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/powerpc/platforms/52xx/lite5200.c b/arch/powerpc/platforms/52xx/lite5200.c
index 25d2bfa3d9dc..ce903bef004e 100644
--- a/arch/powerpc/platforms/52xx/lite5200.c
+++ b/arch/powerpc/platforms/52xx/lite5200.c
@@ -131,10 +131,6 @@ static void lite5200_resume_finish(void __iomem *mbar)
static void __init lite5200_setup_arch(void)
{
-#ifdef CONFIG_PCI
- struct device_node *np;
-#endif
-
if (ppc_md.progress)
ppc_md.progress("lite5200_setup_arch()", 0);
@@ -154,13 +150,7 @@ static void __init lite5200_setup_arch(void)
lite5200_pm_init();
#endif
-#ifdef CONFIG_PCI
- np = of_find_node_by_type(NULL, "pci");
- if (np) {
- mpc52xx_add_bridge(np);
- of_node_put(np);
- }
-#endif
+ mpc52xx_setup_pci();
}
/*