瀏覽代碼

USB: pl2303: Add autosuspend support to pl2303 usb serial converter.

Signed-off-by: Sarah Sharp <saharabeara@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Sarah Sharp 17 年之前
父節點
當前提交
fcf9e55e06
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/usb/serial/pl2303.c

+ 3 - 0
drivers/usb/serial/pl2303.c

@@ -99,7 +99,10 @@ static struct usb_driver pl2303_driver = {
 	.probe =	usb_serial_probe,
 	.disconnect =	usb_serial_disconnect,
 	.id_table =	id_table,
+	.suspend =      usb_serial_suspend,
+	.resume =       usb_serial_resume,
 	.no_dynamic_id = 	1,
+	.supports_autosuspend =	1,
 };
 
 #define SET_LINE_REQUEST_TYPE		0x21