diff options
author | Scott Wood <scottwood@freescale.com> | 2007-03-12 16:41:51 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-13 06:15:58 -0400 |
commit | 5adeef52ccc0229e06a6e0b2fefe442d8779f025 (patch) | |
tree | 8d6b5cd29a1df299bd228f03b13d2f7eeda0b1c1 /arch/powerpc/boot/flatdevtree.c | |
parent | 9dd2c31ab89a12571db89648bcc9992cf71b63d8 (diff) |
[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.c | 2 |
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, | |||
429 | { | 429 | { |
430 | int off, len; | 430 | int off, len; |
431 | 431 | ||
432 | off = lookup_string(cxt, name); | 432 | off = map_string(cxt, name); |
433 | if (off == NO_STRING) | 433 | if (off == NO_STRING) |
434 | return -1; | 434 | return -1; |
435 | 435 | ||