Commit ff651516 authored by Grant Likely's avatar Grant Likely Committed by Benjamin Herrenschmidt

powerpc/5200: convert mpc5200 to use of_platform_populate()

of_platform_populate() also handles nodes at the root of the tree,
which is wanted for things like describing the sound complex.  This
patch converts mpc5200 support to use of_platform_populate() instead
of of_platform_bus_probe().
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
parent 70a3e5a0
...@@ -98,13 +98,11 @@ struct mpc52xx_gpio_wkup __iomem *wkup_gpio; ...@@ -98,13 +98,11 @@ struct mpc52xx_gpio_wkup __iomem *wkup_gpio;
* of the localplus bus to the of_platform * of the localplus bus to the of_platform
* bus. * bus.
*/ */
void __init void __init mpc52xx_declare_of_platform_devices(void)
mpc52xx_declare_of_platform_devices(void)
{ {
/* Find every child of the SOC node and add it to of_platform */ /* Find all the 'platform' devices and register them. */
if (of_platform_bus_probe(NULL, mpc52xx_bus_ids, NULL)) if (of_platform_populate(NULL, mpc52xx_bus_ids, NULL, NULL))
printk(KERN_ERR __FILE__ ": " pr_err(__FILE__ ": Error while populating devices from DT\n");
"Error while probing of_platform bus\n");
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment