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/[email protected]/ Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 6f982d5 commit 369259d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)