aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r--drivers/of/platform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index 5be008035b94..c52a798684a9 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -617,6 +617,8 @@ int of_platform_bus_probe(struct device_node *root,
617 root = of_find_node_by_path("/"); 617 root = of_find_node_by_path("/");
618 else 618 else
619 of_node_get(root); 619 of_node_get(root);
620 if (root == NULL)
621 return -EINVAL;
620 622
621 pr_debug("of_platform_bus_probe()\n"); 623 pr_debug("of_platform_bus_probe()\n");
622 pr_debug(" starting at: %s\n", root->full_name); 624 pr_debug(" starting at: %s\n", root->full_name);