2013-12-17 16:16:02 +00:00
|
|
|
Bugzilla: 818378
|
|
|
|
Upstream-status: Sent upstream by Davej in 2012. Pinged again on Dec 17, 2013
|
|
|
|
|
2012-05-07 16:03:03 +00:00
|
|
|
diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c
|
|
|
|
index 927cbd1..f060f28 100644
|
|
|
|
--- a/fs/proc/proc_devtree.c
|
|
|
|
+++ b/fs/proc/proc_devtree.c
|
|
|
|
@@ -233,6 +233,7 @@ void __init proc_device_tree_init(void)
|
|
|
|
return;
|
|
|
|
root = of_find_node_by_path("/");
|
|
|
|
if (root == NULL) {
|
|
|
|
+ remove_proc_entry("device-tree", NULL);
|
|
|
|
pr_debug("/proc/device-tree: can't find root\n");
|
|
|
|
return;
|
|
|
|
}
|