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/[email protected]/ Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 78b6a99 commit 93ccf3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)