Skip to content

Commit

Permalink
mtd: hyperbus: Use of_property_present() for non-boolean properties
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring (Arm) authored and Miquel Raynal committed Jan 15, 2025
1 parent 29b9415 commit cd97c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/hyperbus/hbmc-am654.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit cd97c96

Please sign in to comment.