From: Rob Herring (Arm) Date: Thu, 9 Jan 2025 18:21:48 +0000 (-0600) Subject: mtd: hyperbus: Use of_property_present() for non-boolean properties X-Git-Tag: v6.14-rc1~89^2~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=cd97c961681adb694922b57fe4030b95b7a8ef0a;p=linux-2.6-block.git 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) Reviewed-by: Tudor Ambarus Signed-off-by: Miquel Raynal --- 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)) {