summaryrefslogtreecommitdiffstats
path: root/common/memory.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/memory.c
parent2d36433aa8f360b3c9fce3f4efc0a34c69444694 (diff)
downloadbarebox-b6089182316d831c3bfe0d96994df7e372a43c1b.tar.gz
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/memory.c')
-rw-r--r--common/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/memory.c b/common/memory.c
index ad38b00..ff5bdc1 100644
--- a/common/memory.c
+++ b/common/memory.c
@@ -185,7 +185,7 @@ static int of_memory_fixup(struct device_node *node, void *unused)
if (!memnode)
return -ENOMEM;
- err = of_set_property(memnode, "device_type", "memory", sizeof("memory"), 1);
+ err = of_property_write_string(memnode, "device_type", "memory");
if (err)
return err;