diff options
author | Jeremy Kerr <jeremy.kerr@canonical.com> | 2010-02-02 05:34:14 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-02-09 16:34:10 +0100 |
commit | 8cfb3343f70bcf9403218df120ecf345f06dd585 (patch) | |
tree | 59fc53d15ab487d26ee14ed5c62648b93c9d894f /fs/proc/proc_devtree.c | |
parent | of: include linux/proc_fs.h (diff) | |
download | linux-8cfb3343f70bcf9403218df120ecf345f06dd585.tar.xz linux-8cfb3343f70bcf9403218df120ecf345f06dd585.zip |
of: make set_node_proc_entry private to proc_devtree.c
We only need set_node_proc_entry in proc_devtree.c, so move it there.
This fixes the !HAVE_ARCH_DEVTREE_FIXUPS build, as we can't make make
the definition in linux/of.h conditional on this #define (definitions in
asm/prom.h can't be exposed to linux/of.h, due to the enforced #include
ordering).
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'fs/proc/proc_devtree.c')
-rw-r--r-- | fs/proc/proc_devtree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c index 123257bb356b..2309bf17203f 100644 --- a/fs/proc/proc_devtree.c +++ b/fs/proc/proc_devtree.c @@ -14,12 +14,13 @@ #include <asm/uaccess.h> #include "internal.h" -#ifndef HAVE_ARCH_DEVTREE_FIXUPS static inline void set_node_proc_entry(struct device_node *np, struct proc_dir_entry *de) { -} +#ifdef HAVE_ARCH_DEVTREE_FIXUPS + np->pde = de; #endif +} static struct proc_dir_entry *proc_device_tree; |