aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sparc/kernel/prom.h10
-rw-r--r--arch/sparc/kernel/prom_32.c4
-rw-r--r--arch/sparc/kernel/prom_64.c4
3 files changed, 12 insertions, 6 deletions
diff --git a/arch/sparc/kernel/prom.h b/arch/sparc/kernel/prom.h
new file mode 100644
index 000000000000..dce53de274e8
--- /dev/null
+++ b/arch/sparc/kernel/prom.h
@@ -0,0 +1,10 @@
1#ifndef __PROM_H
2#define __PROM_H
3
4#include <linux/spinlock.h>
5#include <asm/prom.h>
6
7extern struct device_node *allnodes; /* temporary while merging */
8extern rwlock_t devtree_lock; /* temporary while merging */
9
10#endif /* __PROM_H */
diff --git a/arch/sparc/kernel/prom_32.c b/arch/sparc/kernel/prom_32.c
index eee5efcfe50e..715455ba3689 100644
--- a/arch/sparc/kernel/prom_32.c
+++ b/arch/sparc/kernel/prom_32.c
@@ -25,9 +25,7 @@
25#include <asm/prom.h> 25#include <asm/prom.h>
26#include <asm/oplib.h> 26#include <asm/oplib.h>
27 27
28extern struct device_node *allnodes; /* temporary while merging */ 28#include "prom.h"
29
30extern rwlock_t devtree_lock; /* temporary while merging */
31 29
32struct device_node *of_find_node_by_phandle(phandle handle) 30struct device_node *of_find_node_by_phandle(phandle handle)
33{ 31{
diff --git a/arch/sparc/kernel/prom_64.c b/arch/sparc/kernel/prom_64.c
index dbba82f9b142..651448d3cc5a 100644
--- a/arch/sparc/kernel/prom_64.c
+++ b/arch/sparc/kernel/prom_64.c
@@ -30,9 +30,7 @@
30#include <asm/upa.h> 30#include <asm/upa.h>
31#include <asm/smp.h> 31#include <asm/smp.h>
32 32
33extern struct device_node *allnodes; /* temporary while merging */ 33#include "prom.h"
34
35extern rwlock_t devtree_lock; /* temporary while merging */
36 34
37struct device_node *of_find_node_by_phandle(phandle handle) 35struct device_node *of_find_node_by_phandle(phandle handle)
38{ 36{