Skip to content

Commit 6f982d5

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/extcon/extcon-fsa9480.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ static int fsa9480_probe(struct i2c_client *client)
317317
return ret;
318318
}
319319

320-
device_init_wakeup(info->dev, true);
320+
devm_device_init_wakeup(info->dev);
321321
fsa9480_detect_dev(info);
322322

323323
return 0;

0 commit comments

Comments
 (0)