diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2025-01-22 08:56:50 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2025-02-13 14:43:02 +0100 |
commit | c4f5ac99f896bb72dced15b9cd327ce5510beedd (patch) | |
tree | 178421d22024b88ed3a5f9f756dd736adde57cc0 | |
parent | a64dcfb451e254085a7daee5fe51bf22959d52d3 (diff) |
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 <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/accb12bd6d048d95bd1feea07dd1a799ad3f8b31.1737532423.git.geert+renesas@glider.be
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/pmdomain/ti/omap_prm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pmdomain/ti/omap_prm.c b/drivers/pmdomain/ti/omap_prm.c index b8ceb3c2b81c..79d165331d8c 100644 --- a/drivers/pmdomain/ti/omap_prm.c +++ b/drivers/pmdomain/ti/omap_prm.c @@ -613,7 +613,7 @@ static int omap_prm_domain_attach_clock(struct device *dev, if (!of_device_is_compatible(np, "simple-pm-bus")) return 0; - if (!of_property_read_bool(np, "clocks")) + if (!of_property_present(np, "clocks")) return 0; error = pm_clk_create(dev); |