summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-10-13 20:03:33 -0400
committerTom Rini <trini@konsulko.com>2016-10-13 20:03:33 -0400
commit4504062b271bf4d1cf256e4e87e156de6029e088 (patch)
treea0cac720a2687f2ed4ccf15f473d06bb7c8dcb07 /test
parent44afdc4a12b9f6f48338e7975e4f08cfe90dba74 (diff)
parent42b7600d62ae288a8c12431d232b89b26ec61721 (diff)
downloadu-boot-imx-4504062b271bf4d1cf256e4e87e156de6029e088.zip
u-boot-imx-4504062b271bf4d1cf256e4e87e156de6029e088.tar.gz
u-boot-imx-4504062b271bf4d1cf256e4e87e156de6029e088.tar.bz2
Merge git://git.denx.de/u-boot-fdt
Diffstat (limited to 'test')
-rw-r--r--test/overlay/cmd_ut_overlay.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/overlay/cmd_ut_overlay.c b/test/overlay/cmd_ut_overlay.c
index 87dc932..cbef720 100644
--- a/test/overlay/cmd_ut_overlay.c
+++ b/test/overlay/cmd_ut_overlay.c
@@ -52,12 +52,15 @@ static int fdt_getprop_str(void *fdt, const char *path, const char *name,
const char **out)
{
int node_off;
+ int len;
node_off = fdt_path_offset(fdt, path);
if (node_off < 0)
return node_off;
- return fdt_get_string(fdt, node_off, name, out);
+ *out = fdt_stringlist_get(fdt, node_off, name, 0, &len);
+
+ return len < 0 ? len : 0;
}
static int fdt_overlay_change_int_property(struct unit_test_state *uts)