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 /drivers/of | |
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 'drivers/of')
-rw-r--r-- | drivers/of/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 01ab38907d..6632f4d9dd 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -2115,7 +2115,7 @@ int of_device_enable_path(const char *path) */ int of_device_disable(struct device_node *node) { - return of_set_property(node, "status", "disabled", sizeof("disabled"), 1); + return of_property_write_string(node, "status", "disabled"); } /** |