diff options
author | Olaf Hering <olh@suse.de> | 2006-02-04 12:44:56 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-02-07 21:32:44 +1100 |
commit | 090db7c86d5df0161135793063e75bc1abddaa6f (patch) | |
tree | ebefa631f29aaddb575479be1a633c499cde7abb /arch/powerpc | |
parent | 03478804920a53405dfff73a0b23e9dcbbbee1c1 (diff) | |
download | kernel_samsung_espresso10-090db7c86d5df0161135793063e75bc1abddaa6f.zip kernel_samsung_espresso10-090db7c86d5df0161135793063e75bc1abddaa6f.tar.gz kernel_samsung_espresso10-090db7c86d5df0161135793063e75bc1abddaa6f.tar.bz2 |
[PATCH] powerpc: remove pointer/integer confusion in of_find_node_by_name
remove pointer/integer confusion
Signed-off-by: Olaf Hering <olh@suse.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 2b06285..294832a 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c @@ -1403,8 +1403,8 @@ struct device_node *of_find_node_by_name(struct device_node *from, read_lock(&devtree_lock); np = from ? from->allnext : allnodes; - for (; np != 0; np = np->allnext) - if (np->name != 0 && strcasecmp(np->name, name) == 0 + for (; np != NULL; np = np->allnext) + if (np->name != NULL && strcasecmp(np->name, name) == 0 && of_node_get(np)) break; if (from) |