diff options
author | David S. Miller <davem@davemloft.net> | 2008-12-05 04:12:20 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-06 00:44:29 (GMT) |
commit | 657f201df693c26d294f6c789b8a87cd8c16eb53 (patch) | |
tree | 15af6320017965d395a916170aec2d9dfee9503a | |
parent | b28017f57f1ec16ab515e99d863bf9f33ea0d737 (diff) | |
download | linux-fsl-qoriq-657f201df693c26d294f6c789b8a87cd8c16eb53.tar.xz |
sparc: Create common header file for prom_{32,64}.c
This is where common declarations will go as we unify
these files as much as possible into common code.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc/kernel/prom.h | 10 | ||||
-rw-r--r-- | arch/sparc/kernel/prom_32.c | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/prom_64.c | 4 |
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 0000000..dce53de --- /dev/null +++ b/arch/sparc/kernel/prom.h @@ -0,0 +1,10 @@ +#ifndef __PROM_H +#define __PROM_H + +#include <linux/spinlock.h> +#include <asm/prom.h> + +extern struct device_node *allnodes; /* temporary while merging */ +extern rwlock_t devtree_lock; /* temporary while merging */ + +#endif /* __PROM_H */ diff --git a/arch/sparc/kernel/prom_32.c b/arch/sparc/kernel/prom_32.c index eee5efc..715455b 100644 --- a/arch/sparc/kernel/prom_32.c +++ b/arch/sparc/kernel/prom_32.c @@ -25,9 +25,7 @@ #include <asm/prom.h> #include <asm/oplib.h> -extern struct device_node *allnodes; /* temporary while merging */ - -extern rwlock_t devtree_lock; /* temporary while merging */ +#include "prom.h" struct device_node *of_find_node_by_phandle(phandle handle) { diff --git a/arch/sparc/kernel/prom_64.c b/arch/sparc/kernel/prom_64.c index dbba82f..651448d 100644 --- a/arch/sparc/kernel/prom_64.c +++ b/arch/sparc/kernel/prom_64.c @@ -30,9 +30,7 @@ #include <asm/upa.h> #include <asm/smp.h> -extern struct device_node *allnodes; /* temporary while merging */ - -extern rwlock_t devtree_lock; /* temporary while merging */ +#include "prom.h" struct device_node *of_find_node_by_phandle(phandle handle) { |