Skip to content

Commit c4f5ac9

Browse files
geertustorulf
authored andcommitted
pmdomain: ti: Use of_property_present() for non-boolean properties
On BeagleBone Black: OF: /ocp: Read of boolean property 'clocks' with a value. OF: /ocp/interconnect@44c00000: Read of boolean property 'clocks' with a value. OF: /ocp/interconnect@48000000: Read of boolean property 'clocks' with a value. OF: /ocp/interconnect@4a000000: Read of boolean property 'clocks' with a value. 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: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/accb12bd6d048d95bd1feea07dd1a799ad3f8b31.1737532423.git.geert+renesas@glider.be Signed-off-by: Ulf Hansson <[email protected]>
1 parent a64dcfb commit c4f5ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pmdomain/ti/omap_prm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ static int omap_prm_domain_attach_clock(struct device *dev,
613613
if (!of_device_is_compatible(np, "simple-pm-bus"))
614614
return 0;
615615

616-
if (!of_property_read_bool(np, "clocks"))
616+
if (!of_property_present(np, "clocks"))
617617
return 0;
618618

619619
error = pm_clk_create(dev);

0 commit comments

Comments
 (0)