Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316855
b: refs/heads/master
c: a276400
h: refs/heads/master
i:
  316853: e204398
  316851: 2c7a545
  316847: efad39f
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Jun 13, 2012
1 parent 2017dbe commit 01addbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: c2e935a7db6e7354e9dd138b7f6f4c53affc09d9
refs/heads/master: a276400d14bb5b98a5db1d87bbee7b1621abe4a1
8 changes: 5 additions & 3 deletions trunk/drivers/usb/serial/option.c
Original file line number Diff line number Diff line change
Expand Up @@ -1347,12 +1347,15 @@ static int option_probe(struct usb_serial *serial,
serial->interface->cur_altsetting->desc.bInterfaceClass != USB_CLASS_CDC_DATA)
return -ENODEV;

data = serial->private = kzalloc(sizeof(struct usb_wwan_intf_private), GFP_KERNEL);
data = kzalloc(sizeof(struct usb_wwan_intf_private), GFP_KERNEL);
if (!data)
return -ENOMEM;
data->send_setup = option_send_setup;
spin_lock_init(&data->susp_lock);
data->private = (void *)id->driver_info;

usb_set_serial_data(serial, data);

return 0;
}

Expand Down Expand Up @@ -1419,8 +1422,7 @@ static void option_instat_callback(struct urb *urb)
static int option_send_setup(struct usb_serial_port *port)
{
struct usb_serial *serial = port->serial;
struct usb_wwan_intf_private *intfdata =
(struct usb_wwan_intf_private *) serial->private;
struct usb_wwan_intf_private *intfdata = usb_get_serial_data(serial);
struct option_port_private *portdata;
int ifNum = serial->interface->cur_altsetting->desc.bInterfaceNumber;
int val = 0;
Expand Down

0 comments on commit 01addbc

Please sign in to comment.