提交 8cfb3343 编写于 作者: J Jeremy Kerr 提交者: Grant Likely

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: NJeremy Kerr <jeremy.kerr@canonical.com>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 a9f2f63a
...@@ -14,12 +14,13 @@ ...@@ -14,12 +14,13 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include "internal.h" #include "internal.h"
#ifndef HAVE_ARCH_DEVTREE_FIXUPS
static inline void set_node_proc_entry(struct device_node *np, static inline void set_node_proc_entry(struct device_node *np,
struct proc_dir_entry *de) struct proc_dir_entry *de)
{ {
} #ifdef HAVE_ARCH_DEVTREE_FIXUPS
np->pde = de;
#endif #endif
}
static struct proc_dir_entry *proc_device_tree; static struct proc_dir_entry *proc_device_tree;
......
...@@ -73,12 +73,6 @@ static inline void of_node_set_flag(struct device_node *n, unsigned long flag) ...@@ -73,12 +73,6 @@ static inline void of_node_set_flag(struct device_node *n, unsigned long flag)
set_bit(flag, &n->_flags); set_bit(flag, &n->_flags);
} }
static inline void
set_node_proc_entry(struct device_node *dn, struct proc_dir_entry *de)
{
dn->pde = de;
}
extern struct device_node *of_find_all_nodes(struct device_node *prev); extern struct device_node *of_find_all_nodes(struct device_node *prev);
#if defined(CONFIG_SPARC) #if defined(CONFIG_SPARC)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册