Skip to content

Commit 0cd0ef0

Browse files
krzkgregkh
authored andcommitted
power: supply: collie: Fix wakeup source leaks on device unbind
[ Upstream commit c73d19f ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 7b45d24 commit 0cd0ef0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/power/supply/collie_battery.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ static int collie_bat_probe(struct ucb1x00_dev *dev)
440440

441441
static void collie_bat_remove(struct ucb1x00_dev *dev)
442442
{
443+
device_init_wakeup(&ucb->dev, 0);
443444
free_irq(gpiod_to_irq(collie_bat_main.gpio_full), &collie_bat_main);
444445
power_supply_unregister(collie_bat_bu.psy);
445446
power_supply_unregister(collie_bat_main.psy);

0 commit comments

Comments
 (0)