aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-04-23 23:49:47 -0400
committerPaul Mackerras <paulus@samba.org>2007-04-24 08:08:58 -0400
commit112466b4d0036b3244509d01dbbf3c8caec52a23 (patch)
tree9f830c62109282feda1f4e479d8eb61ae21eac07
parent4bf56e1725a298fb430977cf143ad3a36c91b46a (diff)
[POWERPC] Remove find_all_nodes
This old interface has no more users. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r--arch/powerpc/kernel/prom.c17
-rw-r--r--include/asm-powerpc/prom.h1
2 files changed, 0 insertions, 18 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 2f7e6ec215f8..911ec77a42d2 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -1110,23 +1110,6 @@ struct device_node *find_type_devices(const char *type)
1110} 1110}
1111EXPORT_SYMBOL(find_type_devices); 1111EXPORT_SYMBOL(find_type_devices);
1112 1112
1113/**
1114 * Returns all nodes linked together
1115 */
1116struct device_node *find_all_nodes(void)
1117{
1118 struct device_node *head, **prevp, *np;
1119
1120 prevp = &head;
1121 for (np = allnodes; np != 0; np = np->allnext) {
1122 *prevp = np;
1123 prevp = &np->next;
1124 }
1125 *prevp = NULL;
1126 return head;
1127}
1128EXPORT_SYMBOL(find_all_nodes);
1129
1130/** Checks if the given "compat" string matches one of the strings in 1113/** Checks if the given "compat" string matches one of the strings in
1131 * the device's "compatible" property 1114 * the device's "compatible" property
1132 */ 1115 */
diff --git a/include/asm-powerpc/prom.h b/include/asm-powerpc/prom.h
index 58eabb2fa24e..a9acdd8b3bb6 100644
--- a/include/asm-powerpc/prom.h
+++ b/include/asm-powerpc/prom.h
@@ -116,7 +116,6 @@ static inline void set_node_proc_entry(struct device_node *dn, struct proc_dir_e
116extern struct device_node *find_devices(const char *name); 116extern struct device_node *find_devices(const char *name);
117extern struct device_node *find_type_devices(const char *type); 117extern struct device_node *find_type_devices(const char *type);
118extern struct device_node *find_path_device(const char *path); 118extern struct device_node *find_path_device(const char *path);
119extern struct device_node *find_all_nodes(void);
120 119
121/* New style node lookup */ 120/* New style node lookup */
122extern struct device_node *of_find_node_by_name(struct device_node *from, 121extern struct device_node *of_find_node_by_name(struct device_node *from,