diff options
author | Peter Chen <peter.chen@nxp.com> | 2017-02-13 12:21:52 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2017-04-06 04:55:20 +0300 |
commit | 98fd079297dd274c15c926a337253675573c5832 (patch) | |
tree | 8c720ac18eff990de5e7572f3abde8bb00d26ffc /drivers/extcon | |
parent | e57bb43c7e346943d73b44d05485aac68d8aff9d (diff) | |
download | linux-98fd079297dd274c15c926a337253675573c5832.tar.xz |
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 <peter.chen@nxp.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon-usb-gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |