Skip to content

Commit cd97c96

Browse files
robherringmiquelraynal
authored andcommitted
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) <[email protected]> Reviewed-by: Tudor Ambarus <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 29b9415 commit cd97c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/hyperbus/hbmc-am654.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static int am654_hbmc_probe(struct platform_device *pdev)
176176
if (ret)
177177
goto put_node;
178178

179-
if (of_property_read_bool(dev->of_node, "mux-controls")) {
179+
if (of_property_present(dev->of_node, "mux-controls")) {
180180
struct mux_control *control = devm_mux_control_get(dev, NULL);
181181

182182
if (IS_ERR(control)) {

0 commit comments

Comments
 (0)