]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: rk808: fix OF node reference imbalance
authorJohan Hovold <johan@kernel.org>
Tue, 7 Apr 2026 09:50:27 +0000 (11:50 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 29 Apr 2026 03:55:53 +0000 (20:55 -0700)
commitde019f203b0d472c98ead4081ad4f05d92c9b826
treea306ebcdac32d042b26df484836406d9052e202b
parent69056753231f483cc1e40db52228aac42fd4c93d
clk: rk808: 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: 2dc51ca822e4 ("clk: RK808: Reduce 'struct rk808' usage")
Cc: stable@vger.kernel.org # 6.5
Cc: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-rk808.c