Thread (3 messages) 3 messages, 3 authors, 2024-08-01

Re: [PATCH] cpufreq: Use of_property_present()

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2024-08-01 05:51:54
Also in: linux-arm-kernel, linux-pm, linux-sunxi, lkml

On 31-07-24, 13:12, Rob Herring (Arm) wrote:
Use of_property_present() to test for property presence rather than
of_(find|get)_property(). This is part of a larger effort to remove
callers of of_find_property() and similar functions. of_find_property()
leaks the DT struct property and data pointers which is a problem for
dynamically allocated nodes which may be freed.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 drivers/cpufreq/cpufreq-dt.c           | 11 +++--------
 drivers/cpufreq/pmac64-cpufreq.c       |  2 +-
 drivers/cpufreq/sti-cpufreq.c          |  2 +-
 drivers/cpufreq/sun50i-cpufreq-nvmem.c |  2 +-
 4 files changed, 6 insertions(+), 11 deletions(-)
Applied. Thanks.

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help