]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[POWERPC] Remove find_all_nodes
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 24 Apr 2007 03:49:47 +0000 (13:49 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 24 Apr 2007 12:08:58 +0000 (22:08 +1000)
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>
arch/powerpc/kernel/prom.c
include/asm-powerpc/prom.h

index 2f7e6ec215f87dc4d0ef8a05dcea483c7a9a1caf..911ec77a42d2360a6b31b9b6ab3f7ca877e9b322 100644 (file)
@@ -1110,23 +1110,6 @@ struct device_node *find_type_devices(const char *type)
 }
 EXPORT_SYMBOL(find_type_devices);
 
-/**
- * Returns all nodes linked together
- */
-struct device_node *find_all_nodes(void)
-{
-       struct device_node *head, **prevp, *np;
-
-       prevp = &head;
-       for (np = allnodes; np != 0; np = np->allnext) {
-               *prevp = np;
-               prevp = &np->next;
-       }
-       *prevp = NULL;
-       return head;
-}
-EXPORT_SYMBOL(find_all_nodes);
-
 /** Checks if the given "compat" string matches one of the strings in
  * the device's "compatible" property
  */
index 58eabb2fa24eac5c2399b82cb18e674fb0dfc168..a9acdd8b3bb6c3aab5dfc4cd3291bed6b84d923f 100644 (file)
@@ -116,7 +116,6 @@ static inline void set_node_proc_entry(struct device_node *dn, struct proc_dir_e
 extern struct device_node *find_devices(const char *name);
 extern struct device_node *find_type_devices(const char *type);
 extern struct device_node *find_path_device(const char *path);
-extern struct device_node *find_all_nodes(void);
 
 /* New style node lookup */
 extern struct device_node *of_find_node_by_name(struct device_node *from,