diff options
| -rw-r--r-- | arch/microblaze/include/asm/prom.h | 4 | ||||
| -rw-r--r-- | arch/powerpc/include/asm/prom.h | 4 | ||||
| -rw-r--r-- | arch/sparc/include/asm/prom.h | 9 | ||||
| -rw-r--r-- | include/linux/of.h | 16 |
4 files changed, 16 insertions, 17 deletions
diff --git a/arch/microblaze/include/asm/prom.h b/arch/microblaze/include/asm/prom.h index d4f57ffdae3..c92b4a9e439 100644 --- a/arch/microblaze/include/asm/prom.h +++ b/arch/microblaze/include/asm/prom.h | |||
| @@ -40,10 +40,6 @@ extern struct device_node *of_chosen; | |||
| 40 | extern struct device_node *allnodes; /* temporary while merging */ | 40 | extern struct device_node *allnodes; /* temporary while merging */ |
| 41 | extern rwlock_t devtree_lock; /* temporary while merging */ | 41 | extern rwlock_t devtree_lock; /* temporary while merging */ |
| 42 | 42 | ||
| 43 | extern struct device_node *of_find_all_nodes(struct device_node *prev); | ||
| 44 | extern struct device_node *of_node_get(struct device_node *node); | ||
| 45 | extern void of_node_put(struct device_node *node); | ||
| 46 | |||
| 47 | /* For scanning the flat device-tree at boot time */ | 43 | /* For scanning the flat device-tree at boot time */ |
| 48 | extern int __init of_scan_flat_dt(int (*it)(unsigned long node, | 44 | extern int __init of_scan_flat_dt(int (*it)(unsigned long node, |
| 49 | const char *uname, int depth, | 45 | const char *uname, int depth, |
diff --git a/arch/powerpc/include/asm/prom.h b/arch/powerpc/include/asm/prom.h index d8c0525c313..622769cd1d6 100644 --- a/arch/powerpc/include/asm/prom.h +++ b/arch/powerpc/include/asm/prom.h | |||
| @@ -34,10 +34,6 @@ extern struct device_node *of_chosen; | |||
| 34 | 34 | ||
| 35 | #define HAVE_ARCH_DEVTREE_FIXUPS | 35 | #define HAVE_ARCH_DEVTREE_FIXUPS |
| 36 | 36 | ||
| 37 | extern struct device_node *of_find_all_nodes(struct device_node *prev); | ||
| 38 | extern struct device_node *of_node_get(struct device_node *node); | ||
| 39 | extern void of_node_put(struct device_node *node); | ||
| 40 | |||
| 41 | /* For scanning the flat device-tree at boot time */ | 37 | /* For scanning the flat device-tree at boot time */ |
| 42 | extern int __init of_scan_flat_dt(int (*it)(unsigned long node, | 38 | extern int __init of_scan_flat_dt(int (*it)(unsigned long node, |
| 43 | const char *uname, int depth, | 39 | const char *uname, int depth, |
diff --git a/arch/sparc/include/asm/prom.h b/arch/sparc/include/asm/prom.h index ddbd870b572..f845828ca4c 100644 --- a/arch/sparc/include/asm/prom.h +++ b/arch/sparc/include/asm/prom.h | |||
| @@ -51,15 +51,6 @@ extern void prom_build_devicetree(void); | |||
| 51 | extern void of_populate_present_mask(void); | 51 | extern void of_populate_present_mask(void); |
| 52 | extern void of_fill_in_cpu_data(void); | 52 | extern void of_fill_in_cpu_data(void); |
| 53 | 53 | ||
| 54 | /* Dummy ref counting routines - to be implemented later */ | ||
| 55 | static inline struct device_node *of_node_get(struct device_node *node) | ||
| 56 | { | ||
| 57 | return node; | ||
| 58 | } | ||
| 59 | static inline void of_node_put(struct device_node *node) | ||
| 60 | { | ||
| 61 | } | ||
| 62 | |||
| 63 | /* These routines are here to provide compatibility with how powerpc | 54 | /* These routines are here to provide compatibility with how powerpc |
| 64 | * handles IRQ mapping for OF device nodes. We precompute and permanently | 55 | * handles IRQ mapping for OF device nodes. We precompute and permanently |
| 65 | * register them in the of_device objects, whereas powerpc computes them | 56 | * register them in the of_device objects, whereas powerpc computes them |
diff --git a/include/linux/of.h b/include/linux/of.h index 18e4379b8b7..4636bba93af 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
| @@ -79,6 +79,22 @@ set_node_proc_entry(struct device_node *dn, struct proc_dir_entry *de) | |||
| 79 | dn->pde = de; | 79 | dn->pde = de; |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | #if defined(CONFIG_SPARC) | ||
| 83 | /* Dummy ref counting routines - to be implemented later */ | ||
| 84 | static inline struct device_node *of_node_get(struct device_node *node) | ||
| 85 | { | ||
| 86 | return node; | ||
| 87 | } | ||
| 88 | static inline void of_node_put(struct device_node *node) | ||
| 89 | { | ||
| 90 | } | ||
| 91 | |||
| 92 | #else | ||
| 93 | extern struct device_node *of_find_all_nodes(struct device_node *prev); | ||
| 94 | extern struct device_node *of_node_get(struct device_node *node); | ||
| 95 | extern void of_node_put(struct device_node *node); | ||
| 96 | #endif | ||
| 97 | |||
| 82 | /* | 98 | /* |
| 83 | * OF address retreival & translation | 99 | * OF address retreival & translation |
| 84 | */ | 100 | */ |
