Skip to content

Commit 93ccf3f

Browse files
krzkchanwoochoi
authored andcommitted
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>
1 parent 78b6a99 commit 93ccf3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/extcon/extcon-axp288.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static int axp288_extcon_probe(struct platform_device *pdev)
470470
if (ret < 0)
471471
return ret;
472472

473-
device_init_wakeup(dev, true);
473+
devm_device_init_wakeup(dev);
474474
platform_set_drvdata(pdev, info);
475475

476476
return 0;

0 commit comments

Comments
 (0)