]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: s2dos05: fix OF node reference imbalance
authorJohan Hovold <johan@kernel.org>
Wed, 8 Apr 2026 07:30:53 +0000 (09:30 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 9 Apr 2026 19:19:33 +0000 (20:19 +0100)
commitebe694d67f159899b063eee61bacda4cb825ed7b
treec4c9e285cdb48fb583aa01a92fef36949866617e
parent2f38e96c273e15f5e9f5d1fc2c0cbba703751602
regulator: s2dos05: 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: bb2441402392 ("regulator: add s2dos05 regulator support")
Cc: stable@vger.kernel.org # 6.18
Cc: Dzmitry Sankouski <dsankouski@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260408073055.5183-6-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s2dos05-regulator.c