]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: fix OF node imbalance on reuse
authorMark Brown <broonie@kernel.org>
Thu, 9 Apr 2026 19:19:36 +0000 (20:19 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 9 Apr 2026 19:19:36 +0000 (20:19 +0100)
commite7ef5ec6d1f0568e5c11ceeb729f412560ad8ef7
tree5eab75f8bdc8e912b84f72db0e43368f1e14941b
parentb043657c35e52ec5cf1c9942462f4bfd91dfe256
parent8498100ee1d00422b8c5b161b3e332278b92a59a
regulator: fix OF node imbalance on reuse

Johan Hovold <johan@kernel.org> says:

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 the first two patches will cause a trivial conflict with Doug's
series adding accessor functions for struct device flags which has now been
merged to the driver-core tree:

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

Link: https://patch.msgid.link/20260408073055.5183-1-johan@kernel.org