diff options
Diffstat (limited to 'drivers/usb/serial/qcserial.c')
-rw-r--r-- | drivers/usb/serial/qcserial.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/serial/qcserial.c b/drivers/usb/serial/qcserial.c index 8d103019d6aa..314ae8ceba41 100644 --- a/drivers/usb/serial/qcserial.c +++ b/drivers/usb/serial/qcserial.c | |||
@@ -262,8 +262,7 @@ static void qc_release(struct usb_serial *serial) | |||
262 | { | 262 | { |
263 | struct usb_wwan_intf_private *priv = usb_get_serial_data(serial); | 263 | struct usb_wwan_intf_private *priv = usb_get_serial_data(serial); |
264 | 264 | ||
265 | /* Call usb_wwan release & free the private data allocated in qcprobe */ | 265 | /* Free the private data allocated in qcprobe */ |
266 | usb_wwan_release(serial); | ||
267 | usb_set_serial_data(serial, NULL); | 266 | usb_set_serial_data(serial, NULL); |
268 | kfree(priv); | 267 | kfree(priv); |
269 | } | 268 | } |
@@ -283,8 +282,8 @@ static struct usb_serial_driver qcdevice = { | |||
283 | .write_room = usb_wwan_write_room, | 282 | .write_room = usb_wwan_write_room, |
284 | .chars_in_buffer = usb_wwan_chars_in_buffer, | 283 | .chars_in_buffer = usb_wwan_chars_in_buffer, |
285 | .attach = usb_wwan_startup, | 284 | .attach = usb_wwan_startup, |
286 | .disconnect = usb_wwan_disconnect, | ||
287 | .release = qc_release, | 285 | .release = qc_release, |
286 | .port_remove = usb_wwan_port_remove, | ||
288 | #ifdef CONFIG_PM | 287 | #ifdef CONFIG_PM |
289 | .suspend = usb_wwan_suspend, | 288 | .suspend = usb_wwan_suspend, |
290 | .resume = usb_wwan_resume, | 289 | .resume = usb_wwan_resume, |