extcon: usb-gpio: Do not enable USB as wakeup source by default
authorPeter Chen <peter.chen@nxp.com>
Mon, 13 Feb 2017 09:21:52 +0000 (17:21 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:28:11 +0000 (15:28 -0500)
Whether the USB port as a wakeup source should be determined by user,
but not enabled by default.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
(cherry picked from commit 98fd079297dd274c15c926a337253675573c5832)

drivers/extcon/extcon-usb-gpio.c

index a5e1882..66c749d 100644 (file)
@@ -195,7 +195,7 @@ static int usb_extcon_probe(struct platform_device *pdev)
        }
 
        platform_set_drvdata(pdev, info);
-       device_init_wakeup(dev, true);
+       device_set_wakeup_capable(&pdev->dev, true);
 
        /* Perform initial detection */
        usb_extcon_detect_cable(&info->wq_detcable.work);