aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-04-23 23:51:59 -0400
committerPaul Mackerras <paulus@samba.org>2007-04-24 08:09:01 -0400
commit1658ab66781d918f604c6069c5cf9a94b6f52f84 (patch)
tree059e9b6ba2e893402fa9cf1a5e3ce47bf9095bfd /arch/powerpc/kernel
parent8c8dc322486d5394dc981bef9276dd0ce6c8d1ce (diff)
[POWERPC] Remove old interface find_type_devices
Replaced by of_find_node_by_type. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/prom.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 17c41fefecf2..860c88b2f6d1 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -1091,25 +1091,6 @@ struct device_node *find_devices(const char *name)
1091} 1091}
1092EXPORT_SYMBOL(find_devices); 1092EXPORT_SYMBOL(find_devices);
1093 1093
1094/**
1095 * Construct and return a list of the device_nodes with a given type.
1096 */
1097struct device_node *find_type_devices(const char *type)
1098{
1099 struct device_node *head, **prevp, *np;
1100
1101 prevp = &head;
1102 for (np = allnodes; np != 0; np = np->allnext) {
1103 if (np->type != 0 && strcasecmp(np->type, type) == 0) {
1104 *prevp = np;
1105 prevp = &np->next;
1106 }
1107 }
1108 *prevp = NULL;
1109 return head;
1110}
1111EXPORT_SYMBOL(find_type_devices);
1112
1113/** Checks if the given "compat" string matches one of the strings in 1094/** Checks if the given "compat" string matches one of the strings in
1114 * the device's "compatible" property 1095 * the device's "compatible" property
1115 */ 1096 */