mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
6f982d55f8
commit
369259d510
|
|
@ -155,7 +155,7 @@ static int qcom_usb_extcon_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
platform_set_drvdata(pdev, info);
|
platform_set_drvdata(pdev, info);
|
||||||
device_init_wakeup(dev, 1);
|
devm_device_init_wakeup(dev);
|
||||||
|
|
||||||
/* Perform initial detection */
|
/* Perform initial detection */
|
||||||
qcom_usb_extcon_detect_cable(&info->wq_detcable.work);
|
qcom_usb_extcon_detect_cable(&info->wq_detcable.work);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue