public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] regulator: fix OF node imbalance on reuse
@ 2026-04-07  9:41 Johan Hovold
  2026-04-07  9:41 ` [PATCH 1/2] regulator: bq257xx: fix OF node reference imbalance Johan Hovold
  2026-04-07  9:41 ` [PATCH 2/2] regulator: rk808: " Johan Hovold
  0 siblings, 2 replies; 4+ messages in thread
From: Johan Hovold @ 2026-04-07  9:41 UTC (permalink / raw)
  To: Mark Brown; +Cc: Liam Girdwood, Douglas Anderson, linux-kernel, Johan Hovold

These drivers reuse the OF node of their parent multi-function device
but fail to take another reference to balance the one dropped by the
platform bus code when unbinding the MFD and deregistering the child
devices.
	        
Fix this by using the intended helper for reusing OF nodes.

Note that this may cause a trivial conflict with Doug's series adding
accessor functions for struct device flags:

	https://lore.kernel.org/r/20260406232444.3117516-1-dianders@chromium.org

Johan



Johan Hovold (2):
  regulator: bq257xx: fix OF node reference imbalance
  regulator: rk808: fix OF node reference imbalance

 drivers/regulator/bq257xx-regulator.c | 3 +--
 drivers/regulator/rk808-regulator.c   | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-04-07 10:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07  9:41 [PATCH 0/2] regulator: fix OF node imbalance on reuse Johan Hovold
2026-04-07  9:41 ` [PATCH 1/2] regulator: bq257xx: fix OF node reference imbalance Johan Hovold
2026-04-07  9:41 ` [PATCH 2/2] regulator: rk808: " Johan Hovold
2026-04-07 10:41   ` Sebastian Reichel

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