diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2025-04-06 23:27:29 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2025-04-09 00:18:04 +0300 |
commit | c73d19f89cb03c43abbbfa3b9caa1b8fc719764c (patch) | |
tree | adb6384ceb9182b1d6f10c4cbdd16f5aebf14574 | |
parent | 13b5a9e4ca16fd45d395cbfcb78a0551fe17e56e (diff) | |
download | linux-c73d19f89cb03c43abbbfa3b9caa1b8fc719764c.tar.xz |
power: supply: collie: Fix wakeup source leaks on device unbind
Device can be unbound, so driver must also release memory for the wakeup
source.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250406202730.55096-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
-rw-r--r-- | drivers/power/supply/collie_battery.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/collie_battery.c b/drivers/power/supply/collie_battery.c index 68390bd1004f..3daf7befc0bf 100644 --- a/drivers/power/supply/collie_battery.c +++ b/drivers/power/supply/collie_battery.c @@ -440,6 +440,7 @@ err_put_gpio_full: static void collie_bat_remove(struct ucb1x00_dev *dev) { + device_init_wakeup(&ucb->dev, 0); free_irq(gpiod_to_irq(collie_bat_main.gpio_full), &collie_bat_main); power_supply_unregister(collie_bat_bu.psy); power_supply_unregister(collie_bat_main.psy); |