summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/of/base.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index b082f0c656..85c7953370 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1979,7 +1979,7 @@ const struct of_device_id of_default_bus_match_table[] = {
int of_probe(void)
{
- struct device_node *memory;
+ struct device_node *memory, *firmware;
if(!root_node)
return -ENODEV;
@@ -1996,6 +1996,10 @@ int of_probe(void)
if (memory)
of_add_memory(memory, false);
+ firmware = of_find_node_by_path("/firmware");
+ if (firmware)
+ of_platform_populate(firmware, NULL, NULL);
+
of_clk_init(root_node, NULL);
of_platform_populate(root_node, of_default_bus_match_table, NULL);