mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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>
This commit is contained in:
parent
13b5a9e4ca
commit
c73d19f89c
|
|
@ -440,6 +440,7 @@ static int collie_bat_probe(struct ucb1x00_dev *dev)
|
|||
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user