Skip to content

Commit 8cfb334

Browse files
Jeremy Kerrglikely
authored andcommitted
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>
1 parent a9f2f63 commit 8cfb334

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

‎fs/proc/proc_devtree.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
#include <asm/uaccess.h>
1515
#include "internal.h"
1616

17-
#ifndef HAVE_ARCH_DEVTREE_FIXUPS
1817
static inline void set_node_proc_entry(struct device_node *np,
1918
struct proc_dir_entry *de)
2019
{
21-
}
20+
#ifdef HAVE_ARCH_DEVTREE_FIXUPS
21+
np->pde = de;
2222
#endif
23+
}
2324

2425
static struct proc_dir_entry *proc_device_tree;
2526

‎include/linux/of.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ static inline void of_node_set_flag(struct device_node *n, unsigned long flag)
7373
set_bit(flag, &n->_flags);
7474
}
7575

76-
static inline void
77-
set_node_proc_entry(struct device_node *dn, struct proc_dir_entry *de)
78-
{
79-
dn->pde = de;
80-
}
81-
8276
extern struct device_node *of_find_all_nodes(struct device_node *prev);
8377

8478
#if defined(CONFIG_SPARC)

0 commit comments

Comments
 (0)