Skip to content

Commit

Permalink
of: make set_node_proc_entry private to proc_devtree.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Kerr authored and Grant Likely committed Feb 9, 2010
1 parent a9f2f63 commit 8cfb334
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 3 additions & 2 deletions fs/proc/proc_devtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 0 additions & 6 deletions include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ static inline void of_node_set_flag(struct device_node *n, unsigned long flag)
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);

#if defined(CONFIG_SPARC)
Expand Down

0 comments on commit 8cfb334

Please sign in to comment.