cpufreq: Use of_property_present()
authorRob Herring (Arm) <robh@kernel.org>
Wed, 31 Jul 2024 19:12:40 +0000 (13:12 -0600)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 7 Aug 2024 06:41:45 +0000 (12:11 +0530)
commit872cc94c7e3d874373f56b035f998631c6b26d22
tree56cf435fe3b4fb308a27b92e7464a27f932a8a6c
parent8400291e289ee6b2bf9779ff1c83a291501f017b
cpufreq: Use of_property_present()

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>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq-dt.c
drivers/cpufreq/pmac64-cpufreq.c
drivers/cpufreq/sti-cpufreq.c
drivers/cpufreq/sun50i-cpufreq-nvmem.c