dtoc: Update Fdt.GetNode() to handle the root node
authorSimon Glass <sjg@chromium.org>
Sat, 20 Jul 2019 18:23:39 +0000 (12:23 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 29 Jul 2019 15:38:05 +0000 (09:38 -0600)
commite44bc831e262c2ca7f307ad12074c2eb9adab615
tree259efa981e7bfc507568c89533b7e52e9d86c030
parent880e9ee650f829ed4772003633feb01ced94d227
dtoc: Update Fdt.GetNode() to handle the root node

This function currently fails if the root node is requested. Requesting
the root node is sometimes useful, so fix the bug.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/fdt.py
tools/dtoc/test_fdt.py