diff options
-rw-r--r-- | fs/proc/proc_devtree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c index c824187251f6..c82dd5147845 100644 --- a/fs/proc/proc_devtree.c +++ b/fs/proc/proc_devtree.c | |||
@@ -232,6 +232,7 @@ void __init proc_device_tree_init(void) | |||
232 | return; | 232 | return; |
233 | root = of_find_node_by_path("/"); | 233 | root = of_find_node_by_path("/"); |
234 | if (root == NULL) { | 234 | if (root == NULL) { |
235 | remove_proc_entry("device-tree", NULL); | ||
235 | pr_debug("/proc/device-tree: can't find root\n"); | 236 | pr_debug("/proc/device-tree: can't find root\n"); |
236 | return; | 237 | return; |
237 | } | 238 | } |