]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtc: s5m: switch to devm_device_init_wakeup
authorAndré Draszik <andre.draszik@linaro.org>
Wed, 9 Apr 2025 20:37:50 +0000 (21:37 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 23 Jun 2025 21:58:40 +0000 (23:58 +0200)
commit1dd609587414f8b2844e551d1fe0505f12871992
tree96a209a1eaacd2a2e40954380057c796bf7b9a87
parent972a3b47f6e191a0c5afcc45f4de74bf3d043a75
rtc: s5m: switch to devm_device_init_wakeup

To release memory allocated by device_init_wakeup(true), drivers have
to call device_init_wakeup(false) in error paths and unbind.

Switch to the new devres managed version devm_device_init_wakeup() to
plug this memleak.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250409-s2mpg10-v4-29-d66d5f39b6bf@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-s5m.c