Skip to content

Commit

Permalink
extcon: usb-gpio: Do not enable USB as wakeup source by default
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Chanwoo Choi <[email protected]>
  • Loading branch information
Peter Chen authored and chanwoochoi committed Apr 6, 2017
1 parent e57bb43 commit 98fd079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/extcon/extcon-usb-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 98fd079

Please sign in to comment.