summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorRob Herring (Arm) <robh@kernel.org>2025-01-09 12:21:48 -0600
committerMiquel Raynal <miquel.raynal@bootlin.com>2025-01-15 19:12:19 +0100
commitcd97c961681adb694922b57fe4030b95b7a8ef0a (patch)
treed311668ac57e8d5ea612db9073edcf219a4c6918 /drivers/mtd
parent29b9415889d42e6a32ead89cf897f65696d3cb47 (diff)
downloadlinux-cd97c961681adb694922b57fe4030b95b7a8ef0a.tar.gz
linux-cd97c961681adb694922b57fe4030b95b7a8ef0a.tar.bz2
linux-cd97c961681adb694922b57fe4030b95b7a8ef0a.zip
mtd: hyperbus: Use of_property_present() for non-boolean properties
The use of of_property_read_bool() for non-boolean properties is deprecated in favor of of_property_present() when testing for property presence. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/hyperbus/hbmc-am654.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/hyperbus/hbmc-am654.c b/drivers/mtd/hyperbus/hbmc-am654.c
index edad2ab0f2fa..82a1e7b7e4d8 100644
--- a/drivers/mtd/hyperbus/hbmc-am654.c
+++ b/drivers/mtd/hyperbus/hbmc-am654.c
@@ -176,7 +176,7 @@ static int am654_hbmc_probe(struct platform_device *pdev)
if (ret)
goto put_node;
- if (of_property_read_bool(dev->of_node, "mux-controls")) {
+ if (of_property_present(dev->of_node, "mux-controls")) {
struct mux_control *control = devm_mux_control_get(dev, NULL);
if (IS_ERR(control)) {