Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310922
b: refs/heads/master
c: b3a3dd0
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Mack authored and Greg Kroah-Hartman committed Jun 15, 2012
1 parent ac08403 commit cef840e
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 5897b038296ea84e501ba5f957e11939f8cf9be0
refs/heads/master: b3a3dd074f7053ef824ad077e5331b52220ceba1
3 changes: 2 additions & 1 deletion trunk/drivers/usb/core/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,6 @@ int usb_set_configuration(struct usb_device *dev, int configuration)
intfc = cp->intf_cache[i];
intf->altsetting = intfc->altsetting;
intf->num_altsetting = intfc->num_altsetting;
intf->intf_assoc = find_iad(dev, cp, i);
kref_get(&intfc->ref);

alt = usb_altnum_to_altsetting(intf, 0);
Expand All @@ -1851,6 +1850,8 @@ int usb_set_configuration(struct usb_device *dev, int configuration)
if (!alt)
alt = &intf->altsetting[0];

intf->intf_assoc =
find_iad(dev, cp, alt->desc.bInterfaceNumber);
intf->cur_altsetting = alt;
usb_enable_interface(dev, intf, true);
intf->dev.parent = &dev->dev;
Expand Down

0 comments on commit cef840e

Please sign in to comment.