diff options
Diffstat (limited to 'fs/proc/proc_devtree.c')
-rw-r--r-- | fs/proc/proc_devtree.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c index 123257bb356b..ce94801f48ca 100644 --- a/fs/proc/proc_devtree.c +++ b/fs/proc/proc_devtree.c | |||
@@ -10,16 +10,20 @@ | |||
10 | #include <linux/seq_file.h> | 10 | #include <linux/seq_file.h> |
11 | #include <linux/stat.h> | 11 | #include <linux/stat.h> |
12 | #include <linux/string.h> | 12 | #include <linux/string.h> |
13 | #include <linux/of.h> | ||
14 | #include <linux/module.h> | ||
15 | #include <linux/slab.h> | ||
13 | #include <asm/prom.h> | 16 | #include <asm/prom.h> |
14 | #include <asm/uaccess.h> | 17 | #include <asm/uaccess.h> |
15 | #include "internal.h" | 18 | #include "internal.h" |
16 | 19 | ||
17 | #ifndef HAVE_ARCH_DEVTREE_FIXUPS | ||
18 | static inline void set_node_proc_entry(struct device_node *np, | 20 | static inline void set_node_proc_entry(struct device_node *np, |
19 | struct proc_dir_entry *de) | 21 | struct proc_dir_entry *de) |
20 | { | 22 | { |
21 | } | 23 | #ifdef HAVE_ARCH_DEVTREE_FIXUPS |
24 | np->pde = de; | ||
22 | #endif | 25 | #endif |
26 | } | ||
23 | 27 | ||
24 | static struct proc_dir_entry *proc_device_tree; | 28 | static struct proc_dir_entry *proc_device_tree; |
25 | 29 | ||