Skip to content

Commit 369259d

Browse files
krzkchanwoochoi
authored andcommitted
extcon: qcom-spmi-misc: 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-4-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 6f982d5 commit 369259d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/extcon/extcon-qcom-spmi-misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static int qcom_usb_extcon_probe(struct platform_device *pdev)
155155
}
156156

157157
platform_set_drvdata(pdev, info);
158-
device_init_wakeup(dev, 1);
158+
devm_device_init_wakeup(dev);
159159

160160
/* Perform initial detection */
161161
qcom_usb_extcon_detect_cable(&info->wq_detcable.work);

0 commit comments

Comments
 (0)