extcon: ext-usb-gpio: do not enable USB as wakeup source by default
PATCH 1/1 extcon: ext-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 <[email protected]>
--- drivers/extcon/extcon-usb-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/extcon/extcon-usb-gpio.c +1 -1
@@ -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);
Signature · 1 line
2.7.4
Chanwoo Choi
maintainerQuoted 13 lines · Peter Chen
Whether the USB port as a wakeup source should be determined by user, but not enabled by default.
Signed-off-by Peter Chen <[email protected]>--- drivers/extcon/extcon-usb-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/extcon/extcon-usb-gpio.c +0
-0
drivers/extcon/extcon-usb-gpio.c static int usb_extcon_probe(struct platform_device *pdev) · line 201
Quoted 8 lines
drivers/extcon/extcon-usb-gpio.c +1
-1@@ -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);
Applied it.
Thanks.
Signature · 3 lines
Best Regards, Chanwoo Choi Samsung Electronics