mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] cpufreq: dt/dt-platdev: eliminate uses of of_node_put()
@ 2024-04-23  8:27 Javier Carrasco
  2024-04-23  8:27 ` [PATCH 1/2] cpufreq: dt: " Javier Carrasco
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Javier Carrasco @ 2024-04-23  8:27 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar; +Cc: linux-pm, linux-kernel, Javier Carrasco

This series removes uses of of_node_put() in dt and dt-platdev, which
can be replaced with the clenaup handler introduced with
54da6a092431 ("locking: Introduce __cleanup() based infrastructure").

This change provides a scope-based cleanup mechanism to avoid potential
memory leaks that can appear if of_node_put() is not used correctly.

The series is based on linux-next (next-20240422) and has been validated
with a Rockchip RK3568 that makes use of these drivers.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
Javier Carrasco (2):
      cpufreq: dt: eliminate uses of of_node_put()
      cpufreq: dt-platdev: eliminate uses of of_node_put()

 drivers/cpufreq/cpufreq-dt-platdev.c |  7 ++-----
 drivers/cpufreq/cpufreq-dt.c         | 21 ++++++---------------
 2 files changed, 8 insertions(+), 20 deletions(-)
---
base-commit: f529a6d274b3b8c75899e949649d231298f30a32
change-id: 20240422-of_node_put_cpufreq_dt-9c5354d9e9f0

Best regards,
-- 
Javier Carrasco <javier.carrasco.cruz@gmail.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-23  9:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-23  8:27 [PATCH 0/2] cpufreq: dt/dt-platdev: eliminate uses of of_node_put() Javier Carrasco
2024-04-23  8:27 ` [PATCH 1/2] cpufreq: dt: " Javier Carrasco
2024-04-23  8:27 ` [PATCH 2/2] cpufreq: dt-platdev: " Javier Carrasco
2024-04-23  9:30 ` [PATCH 0/2] cpufreq: dt/dt-platdev: " Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®