diff options
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index c6aaa6dc7564..18f940847316 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -1085,12 +1085,15 @@ EXPORT_SYMBOL(usb_serial_suspend); | |||
1085 | int usb_serial_resume(struct usb_interface *intf) | 1085 | int usb_serial_resume(struct usb_interface *intf) |
1086 | { | 1086 | { |
1087 | struct usb_serial *serial = usb_get_intfdata(intf); | 1087 | struct usb_serial *serial = usb_get_intfdata(intf); |
1088 | int rv; | ||
1088 | 1089 | ||
1089 | serial->suspending = 0; | 1090 | serial->suspending = 0; |
1090 | if (serial->type->resume) | 1091 | if (serial->type->resume) |
1091 | return serial->type->resume(serial); | 1092 | rv = serial->type->resume(serial); |
1093 | else | ||
1094 | rv = usb_serial_generic_resume(serial); | ||
1092 | 1095 | ||
1093 | return 0; | 1096 | return rv; |
1094 | } | 1097 | } |
1095 | EXPORT_SYMBOL(usb_serial_resume); | 1098 | EXPORT_SYMBOL(usb_serial_resume); |
1096 | 1099 | ||