diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-30 10:38:19 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-30 23:37:20 +0200 |
commit | b6089182316d831c3bfe0d96994df7e372a43c1b (patch) | |
tree | 5d46f81f7c92167ddb0a7426eec45b4a0e1aef98 /common/memory.c | |
parent | 2d36433aa8f360b3c9fce3f4efc0a34c69444694 (diff) | |
download | barebox-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/memory.c')
-rw-r--r-- | common/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/memory.c b/common/memory.c index ad38b00ecb..ff5bdc14e2 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; |