]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rtc: ntxec: fix OF node reference imbalance
authorJohan Hovold <johan@kernel.org>
Tue, 7 Apr 2026 12:27:17 +0000 (14:27 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 12 Apr 2026 20:54:35 +0000 (22:54 +0200)
commit30c4d2f26bb3538c328035cea2e6265c8320539e
tree7568ca51e9f96e93e0ee73512b658b160c7c2ebb
parent095a3e886dd250acc9ff692f8fcc296f0023a5c6
rtc: ntxec: 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: 435af89786c6 ("rtc: New driver for RTC in Netronix embedded controller")
Cc: stable@vger.kernel.org # 5.13
Cc: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260407122717.2676774-1-johan@kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ntxec.c