diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-04-07 09:59:38 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-04-07 09:59:38 +0200 |
commit | 53adf0648c330357103e4a7103c3d7f05c0c4bcf (patch) | |
tree | 78d038c2761e3c0694eac9bc3386436a8d6c3b1c /arch/sandbox | |
parent | 8b30a8a77612b728bf664a9e9827af7ebdbcd3ba (diff) | |
parent | 12960a57841d5e6ea04fd523611e15a9a4170c89 (diff) | |
download | barebox-53adf0648c330357103e4a7103c3d7f05c0c4bcf.tar.gz barebox-53adf0648c330357103e4a7103c3d7f05c0c4bcf.tar.xz |
Merge branch 'for-next/ofpart'
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/board/hostfile.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index c1a2643bc7..e7d92ea031 100644 --- a/arch/sandbox/board/hostfile.c +++ b/arch/sandbox/board/hostfile.c @@ -133,8 +133,7 @@ static int of_hostfile_fixup(struct device_node *root, void *ctx) node = of_new_node(root, hf->devname); - ret = of_set_property(node, "compatible", hostfile_dt_ids->compatible, - strlen(hostfile_dt_ids->compatible) + 1, 1); + ret = of_property_write_string(node, "compatible", hostfile_dt_ids->compatible); if (ret) return ret; @@ -146,8 +145,7 @@ static int of_hostfile_fixup(struct device_node *root, void *ctx) if (ret) return ret; - ret = of_set_property(node, "barebox,filename", hf->filename, - strlen(hf->filename) + 1, 1); + ret = of_property_write_string(node, "barebox,filename", hf->filename); return ret; } |