mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
extcon: axp288: 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-2-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:
parent
78b6a991eb
commit
93ccf3f2f2
1 changed files with 1 additions and 1 deletions
|
|
@ -470,7 +470,7 @@ static int axp288_extcon_probe(struct platform_device *pdev)
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
device_init_wakeup(dev, true);
|
||||
devm_device_init_wakeup(dev);
|
||||
platform_set_drvdata(pdev, info);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue