[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>
此提交包含在:
@@ -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();
|
||||
}
|
||||
|
||||
/*
|
||||
|
新增問題並參考
封鎖使用者