extcon: fsa9480: Fix wakeup source leaks on device unbind

Device can be unbound, so driver must also release memory for the wakeup
source.

Link: https://lore.kernel.org/lkml/20250501-device-wakeup-leak-extcon-v2-3-7af77802cbea@linaro.org/
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
This commit is contained in:
Krzysztof Kozlowski 2025-05-01 16:33:23 +02:00 committed by Chanwoo Choi
parent 93ccf3f2f2
commit 6f982d55f8
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ static int fsa9480_probe(struct i2c_client *client)
return ret; return ret;
} }
device_init_wakeup(info->dev, true); devm_device_init_wakeup(info->dev);
fsa9480_detect_dev(info); fsa9480_detect_dev(info);
return 0; return 0;