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>
This commit is contained in:
Rob Herring (Arm) 2025-01-09 12:21:48 -06:00 committed by Miquel Raynal
parent 29b9415889
commit cd97c96168

View file

@ -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)) {