aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/option.c')
-rw-r--r--drivers/usb/serial/option.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
index b09388606dc0..99306281dcba 100644
--- a/drivers/usb/serial/option.c
+++ b/drivers/usb/serial/option.c
@@ -1240,8 +1240,8 @@ static struct usb_serial_driver option_1port_device = {
1240 .tiocmset = usb_wwan_tiocmset, 1240 .tiocmset = usb_wwan_tiocmset,
1241 .ioctl = usb_wwan_ioctl, 1241 .ioctl = usb_wwan_ioctl,
1242 .attach = usb_wwan_startup, 1242 .attach = usb_wwan_startup,
1243 .disconnect = usb_wwan_disconnect,
1244 .release = option_release, 1243 .release = option_release,
1244 .port_remove = usb_wwan_port_remove,
1245 .read_int_callback = option_instat_callback, 1245 .read_int_callback = option_instat_callback,
1246#ifdef CONFIG_PM 1246#ifdef CONFIG_PM
1247 .suspend = usb_wwan_suspend, 1247 .suspend = usb_wwan_suspend,
@@ -1357,8 +1357,6 @@ static void option_release(struct usb_serial *serial)
1357 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial); 1357 struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial);
1358 struct option_private *priv = intfdata->private; 1358 struct option_private *priv = intfdata->private;
1359 1359
1360 usb_wwan_release(serial);
1361
1362 kfree(priv); 1360 kfree(priv);
1363 kfree(intfdata); 1361 kfree(intfdata);
1364} 1362}