Commit c73d19f8 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Sebastian Reichel
Browse files

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250406202730.55096-1-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 13b5a9e4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);