aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/flatdevtree.c
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-03-12 14:41:51 -0600
committerPaul Mackerras <paulus@samba.org>2007-03-13 21:15:58 +1100
commit5adeef52ccc0229e06a6e0b2fefe442d8779f025 (patch)
tree8d6b5cd29a1df299bd228f03b13d2f7eeda0b1c1 /arch/powerpc/boot/flatdevtree.c
parent[POWERPC] bootwrapper: Modify *pp, not *p, in ft_shuffle(). (diff)
downloadlinux-dev-5adeef52ccc0229e06a6e0b2fefe442d8779f025.tar.xz
linux-dev-5adeef52ccc0229e06a6e0b2fefe442d8779f025.zip
[POWERPC] bootwrapper: Use map_string() instead of lookup_string() in ft_prop().
When adding a property, the property name should be added to the string table if it doesn't already exist. map_string() does that; lookup_string() will fail instead. Signed-off-by: Scott Wood <scottwood@freescale.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/flatdevtree.c')
-rw-r--r--arch/powerpc/boot/flatdevtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/boot/flatdevtree.c b/arch/powerpc/boot/flatdevtree.c
index f2a29ca9ef85..e319a6502918 100644
--- a/arch/powerpc/boot/flatdevtree.c
+++ b/arch/powerpc/boot/flatdevtree.c
@@ -429,7 +429,7 @@ int ft_prop(struct ft_cxt *cxt, const char *name, const void *data,
{
int off, len;
- off = lookup_string(cxt, name);
+ off = map_string(cxt, name);
if (off == NO_STRING)
return -1;