OF: base: use of_platform_populate for probing
With recent bus/device related functions in OF API, we can now convert to use of_platform_populate. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
61bb8bfc7c
commit
4aa0506c95
|
@ -1840,7 +1840,7 @@ const struct of_device_id of_default_bus_match_table[] = {
|
|||
|
||||
int of_probe(void)
|
||||
{
|
||||
struct device_node *memory, *n;
|
||||
struct device_node *memory;
|
||||
|
||||
if(!root_node)
|
||||
return -ENODEV;
|
||||
|
@ -1854,8 +1854,7 @@ int of_probe(void)
|
|||
if (memory)
|
||||
of_add_memory(memory, false);
|
||||
|
||||
list_for_each_entry(n, &root_node->children, parent_list)
|
||||
__of_probe(n, of_default_bus_match_table, NULL);
|
||||
of_platform_populate(root_node, of_default_bus_match_table, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue