]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: max77650: fix OF node reference imbalance
authorJohan Hovold <johan@kernel.org>
Wed, 8 Apr 2026 07:30:51 +0000 (09:30 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 9 Apr 2026 19:19:32 +0000 (20:19 +0100)
commit2edaf5f7ada0ab5c9ec1f0836bd19779a8d85262
tree665e3b674488a749b9e6942a12d2b44bc5ce4a0e
parent65290b24d8a5f0b8cd065201e653db824c4a4da6
regulator: max77650: fix OF node reference imbalance

The driver reuses the OF node of the parent multi-function device but
fails 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.

Fixes: bcc61f1c44fd ("regulator: max77650: add regulator support")
Cc: stable@vger.kernel.org # 5.1
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260408073055.5183-4-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77650-regulator.c