9
0
Fork 0

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:
Sebastian Hesselbarth 2013-07-02 20:14:35 +02:00 committed by Sascha Hauer
parent 61bb8bfc7c
commit 4aa0506c95
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}