Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303600
b: refs/heads/master
c: bdce661
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Apr 25, 2012
1 parent abc2c73 commit 4c981dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 6f1efd6c5aa63ddcfe1ffc60ade716f5421766f4
refs/heads/master: bdce6612a0562e64acec92bbf6dce567609f5867
6 changes: 2 additions & 4 deletions trunk/drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,8 @@ int usb_serial_probe(struct usb_interface *interface,
dbg("the device claims to support interrupt out transfers, but write_int_callback is not defined");
}

usb_set_intfdata(interface, serial);

/* if this device type has an attach function, call it */
if (type->attach) {
retval = type->attach(serial);
Expand Down Expand Up @@ -1087,10 +1089,7 @@ int usb_serial_probe(struct usb_interface *interface,
serial->disconnected = 0;

usb_serial_console_init(debug, minor);

exit:
/* success */
usb_set_intfdata(interface, serial);
module_put(type->driver.owner);
return 0;

Expand All @@ -1112,7 +1111,6 @@ void usb_serial_disconnect(struct usb_interface *interface)
dbg("%s", __func__);

mutex_lock(&serial->disc_mutex);
usb_set_intfdata(interface, NULL);
/* must set a flag, to signal subdrivers */
serial->disconnected = 1;
mutex_unlock(&serial->disc_mutex);
Expand Down

0 comments on commit 4c981dc

Please sign in to comment.