[POWERPC] wrapper: Treat NULL as root node in devp_offset; add devp_offset_find()
authorScott Wood <scottwood@freescale.com>
Tue, 11 Dec 2007 21:23:05 +0000 (08:23 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 20 Dec 2007 05:11:46 +0000 (16:11 +1100)
commit2a9d2d97d370e3fe959312762c3190e6a6ae9e11
tree0a8fefe663f64e68b26a4a22c54b6e9fc2401194
parent754e5f3f3a96264b96d5593242d81c7468af70cb
[POWERPC] wrapper: Treat NULL as root node in devp_offset; add devp_offset_find()

Many operations, as currently used in the wrapper, assume they can
pass NULL and have it be treated as the root node.  However, libfdt-wrapper
converts NULL to -1, which is only appropriate when searching for nodes,
and will cause an error otherwise.

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>
arch/powerpc/boot/libfdt-wrapper.c