diff options
author | Scott Wood <scottwood@freescale.com> | 2007-03-12 14:41:51 -0600 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-03-13 21:15:58 +1100 |
commit | 5adeef52ccc0229e06a6e0b2fefe442d8779f025 (patch) | |
tree | 8d6b5cd29a1df299bd228f03b13d2f7eeda0b1c1 /arch/powerpc/boot/flatdevtree.c | |
parent | 9dd2c31ab89a12571db89648bcc9992cf71b63d8 (diff) | |
download | blackbird-obmc-linux-5adeef52ccc0229e06a6e0b2fefe442d8779f025.tar.gz blackbird-obmc-linux-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.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, { int off, len; - off = lookup_string(cxt, name); + off = map_string(cxt, name); if (off == NO_STRING) return -1; |