From: Scott Wood Date: Mon, 12 Mar 2007 20:41:51 +0000 (-0600) Subject: [POWERPC] bootwrapper: Use map_string() instead of lookup_string() in ft_prop(). X-Git-Tag: v2.6.22-rc1~1109^2~180 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5adeef52ccc0229e06a6e0b2fefe442d8779f025;p=linux-2.6-omap-h63xx.git [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 Acked-by: David Gibson Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/boot/flatdevtree.c b/arch/powerpc/boot/flatdevtree.c index f2a29ca9ef8..e319a650291 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;