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 /arch/arm/cpu/psci.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 'arch/arm/cpu/psci.c')
-rw-r--r-- | arch/arm/cpu/psci.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/cpu/psci.c b/arch/arm/cpu/psci.c index d650c23ea2..eafb361a0a 100644 --- a/arch/arm/cpu/psci.c +++ b/arch/arm/cpu/psci.c @@ -204,13 +204,11 @@ static int of_psci_fixup(struct device_node *root, void *unused) if (!psci) return -EINVAL; - ret = of_set_property(psci, "compatible", "arm,psci-1.0", - strlen("arm,psci-1.0") + 1, 1); + ret = of_property_write_string(psci, "compatible", "arm,psci-1.0"); if (ret) return ret; - ret = of_set_property(psci, "method", "smc", - strlen("smc") + 1, 1); + ret = of_property_write_string(psci, "method", "smc"); if (ret) return ret; |