]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mtd: hyperbus: Use of_property_present() for non-boolean properties
authorRob Herring (Arm) <robh@kernel.org>
Thu, 9 Jan 2025 18:21:48 +0000 (12:21 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 15 Jan 2025 18:12:19 +0000 (19:12 +0100)
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>
drivers/mtd/hyperbus/hbmc-am654.c

index edad2ab0f2fa9601b24a7d3a17c3a2eace9a458e..82a1e7b7e4d81f90ae53c0bc98c79e3a96672068 100644 (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)) {