Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310902
b: refs/heads/master
c: b9c3aab
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Jun 12, 2012
1 parent 554e922 commit 2f6c360
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4273f9878b0a8271df055e3c8f2e7f08c6a4a2f4
refs/heads/master: b9c3aab315b51f81649a0d737c4c73783fbd8de0
12 changes: 11 additions & 1 deletion trunk/drivers/usb/serial/option.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
/* Function prototypes */
static int option_probe(struct usb_serial *serial,
const struct usb_device_id *id);
static void option_release(struct usb_serial *serial);
static int option_send_setup(struct usb_serial_port *port);
static void option_instat_callback(struct urb *urb);

Expand Down Expand Up @@ -1251,7 +1252,7 @@ static struct usb_serial_driver option_1port_device = {
.ioctl = usb_wwan_ioctl,
.attach = usb_wwan_startup,
.disconnect = usb_wwan_disconnect,
.release = usb_wwan_release,
.release = option_release,
.read_int_callback = option_instat_callback,
#ifdef CONFIG_PM
.suspend = usb_wwan_suspend,
Expand Down Expand Up @@ -1333,6 +1334,15 @@ static int option_probe(struct usb_serial *serial,
return 0;
}

static void option_release(struct usb_serial *serial)
{
struct usb_wwan_intf_private *priv = usb_get_serial_data(serial);

usb_wwan_release(serial);

kfree(priv);
}

static void option_instat_callback(struct urb *urb)
{
int err;
Expand Down

0 comments on commit 2f6c360

Please sign in to comment.