Skip to content

Commit

Permalink
sparc: Create common header file for prom_{32,64}.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Dec 6, 2008
1 parent b28017f commit 657f201
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 10 additions & 0 deletions arch/sparc/kernel/prom.h
Original file line number Diff line number Diff line change
@@ -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 */
4 changes: 1 addition & 3 deletions arch/sparc/kernel/prom_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 1 addition & 3 deletions arch/sparc/kernel/prom_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 657f201

Please sign in to comment.