From: Peter Chen Date: Mon, 13 Feb 2017 09:21:52 +0000 (+0800) Subject: extcon: usb-gpio: Do not enable USB as wakeup source by default X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=98fd079297dd274c15c926a337253675573c5832;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git extcon: usb-gpio: Do not enable USB as wakeup source by default Whether the USB port as a wakeup source should be determined by user, but not enabled by default. Signed-off-by: Peter Chen Signed-off-by: Chanwoo Choi --- diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c index a0d7de8675e0..0ac32dfdda50 100644 --- a/drivers/extcon/extcon-usb-gpio.c +++ b/drivers/extcon/extcon-usb-gpio.c @@ -194,7 +194,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);