summaryrefslogtreecommitdiffstats
path: root/common/oftree.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-03-30 10:38:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-30 23:37:20 +0200
commitb6089182316d831c3bfe0d96994df7e372a43c1b (patch)
tree5d46f81f7c92167ddb0a7426eec45b4a0e1aef98 /common/oftree.c
parent2d36433aa8f360b3c9fce3f4efc0a34c69444694 (diff)
downloadbarebox-b6089182316d831c3bfe0d96994df7e372a43c1b.tar.gz
barebox-b6089182316d831c3bfe0d96994df7e372a43c1b.tar.xz
treewide: Use of_property_write_string() where appropriate
Replace users which use of_set_property() to set a property to a string with of_property_write_string(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/oftree.c')
-rw-r--r--common/oftree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/oftree.c b/common/oftree.c
index e98b908738..09a4455a9e 100644
--- a/common/oftree.c
+++ b/common/oftree.c
@@ -128,7 +128,7 @@ static int of_fixup_bootargs(struct device_node *root, void *unused)
return -ENOMEM;
- err = of_set_property(node, "bootargs", str, strlen(str) + 1, 1);
+ err = of_property_write_string(node, "bootargs", str);
return err;
}