devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] Add wrapper function of_find_node_by_name_balanced()
@ 2025-02-07  1:31 Zhang Zekun
  2025-02-07  1:31 ` [PATCH 1/9] of: Add warpper " Zhang Zekun
                   ` (8 more replies)
  0 siblings, 9 replies; 28+ messages in thread
From: Zhang Zekun @ 2025-02-07  1:31 UTC (permalink / raw)
  To: robh, saravanak, justin.chen, florian.fainelli, andrew+netdev,
	kuba, o.rempel, kory.maincent, jacopo+renesas,
	kieran.bingham+renesas, laurent.pinchart+renesas, maddy, mpe,
	npiggin, olteanv, davem, taras.chornyi, edumazet, pabeni,
	sudeep.holla, cristian.marussi
  Cc: arm-scmi, linuxppc-dev, linux-media, netdev, devicetree,
	chenjun102, zhangzekun11

Add wrapper function of_find_node_by_name_balanced() for drivers who
want to call of_find_node_by_name() and have to blance the ref count
by calling of_node_get(). For drivers who forget to call of_node_get(),
can also utilizing of_find_node_by_name_balanced() to fix a refcount
leak.

Zhang Zekun (9):
  of: Add warpper function of_find_node_by_name_balanced()
  net: bcmasp: Add missing of_node_get() before of_find_node_by_name()
  net: pse-pd: Add missing of_node_get() before of_find_node_by_name()
  media: max9286: Use of_find_node_by_name_balanced() to find
    device_node
  powerpc: Use of_find_node_by_name_balanced() to find device_node
  net: dsa: Use of_find_node_by_name_balanced() to find device_node
  net: dsa: hellcreek: Use of_find_node_by_name_balanced() to find
    device_node
  net: prestera: Use of_find_node_by_name_balanced() to find device_node
  regulator: scmi: Use of_find_node_by_name_balanced() to find
    device_node

 arch/powerpc/platforms/powermac/pic.c                 | 4 +---
 drivers/media/i2c/max9286.c                           | 4 +---
 drivers/net/dsa/bcm_sf2.c                             | 4 +---
 drivers/net/dsa/hirschmann/hellcreek_ptp.c            | 3 +--
 drivers/net/ethernet/broadcom/asp2/bcmasp.c           | 2 +-
 drivers/net/ethernet/marvell/prestera/prestera_main.c | 3 +--
 drivers/net/pse-pd/tps23881.c                         | 2 +-
 drivers/regulator/scmi-regulator.c                    | 3 +--
 include/linux/of.h                                    | 5 +++++
 9 files changed, 13 insertions(+), 17 deletions(-)

-- 
2.22.0


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

end of thread, other threads:[~2025-06-10 20:17 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07  1:31 [PATCH 0/9] Add wrapper function of_find_node_by_name_balanced() Zhang Zekun
2025-02-07  1:31 ` [PATCH 1/9] of: Add warpper " Zhang Zekun
2025-02-07  8:24   ` Oleksij Rempel
2025-02-07  8:57     ` Laurent Pinchart
2025-02-07 11:28     ` zhangzekun (A)
2025-02-07 15:37       ` Laurent Pinchart
2025-02-08  4:18         ` Dan Carpenter
2025-04-25 15:30           ` Dan Carpenter
2025-04-25 17:07             ` Laurent Pinchart
2025-06-10 19:39               ` Andy Shevchenko
2025-06-10 20:03                 ` Laurent Pinchart
2025-06-10 20:17                   ` Andy Shevchenko
2025-02-10  6:47         ` zhangzekun (A)
2025-02-10 10:03           ` Laurent Pinchart
2025-02-11 11:26             ` zhangzekun (A)
2025-02-11 11:43               ` Laurent Pinchart
2025-02-11 14:15         ` Rob Herring
2025-02-12  5:47   ` Krzysztof Kozlowski
2025-02-07  1:31 ` [PATCH 2/9] net: bcmasp: Add missing of_node_get() before of_find_node_by_name() Zhang Zekun
2025-02-12  5:52   ` Krzysztof Kozlowski
2025-02-12  6:50     ` zhangzekun (A)
2025-02-07  1:31 ` [PATCH 3/9] net: pse-pd: " Zhang Zekun
2025-02-07  1:31 ` [PATCH 4/9] media: max9286: Use of_find_node_by_name_balanced() to find device_node Zhang Zekun
2025-02-07  1:31 ` [PATCH 5/9] powerpc: " Zhang Zekun
2025-02-07  1:31 ` [PATCH 6/9] net: dsa: " Zhang Zekun
2025-02-07  1:31 ` [PATCH 7/9] net: dsa: hellcreek: " Zhang Zekun
2025-02-07  1:31 ` [PATCH 8/9] net: prestera: " Zhang Zekun
2025-02-07  1:31 ` [PATCH 9/9] regulator: scmi: " Zhang Zekun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).