瀏覽代碼

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>
Peter Chen 8 年之前
父節點
當前提交
98fd079297
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/extcon/extcon-usb-gpio.c

+ 1 - 1
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);