diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-20 19:24:02 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-20 19:24:02 -0400 |
commit | ff446f2001cf9b5ed97c6256c4ee3549d3b7abed (patch) | |
tree | ec5fd60a8b9c21ae85eaa99003f26e6c342e2234 /drivers/usb/core/message.c | |
parent | 78091dc2f6f04b03131218df590c877cadcd9379 (diff) | |
parent | 485802a6c524e62b5924849dd727ddbb1497cc71 (diff) |
Merge 3.5-rc3 into usb-next
This lets us catch the USB fixes that went into 3.5-rc3 into this branch,
as we want them here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/message.c')
-rw-r--r-- | drivers/usb/core/message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index ca7fc392fd9e..8b9d669e3784 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c | |||
@@ -1839,7 +1839,6 @@ free_interfaces: | |||
1839 | intfc = cp->intf_cache[i]; | 1839 | intfc = cp->intf_cache[i]; |
1840 | intf->altsetting = intfc->altsetting; | 1840 | intf->altsetting = intfc->altsetting; |
1841 | intf->num_altsetting = intfc->num_altsetting; | 1841 | intf->num_altsetting = intfc->num_altsetting; |
1842 | intf->intf_assoc = find_iad(dev, cp, i); | ||
1843 | kref_get(&intfc->ref); | 1842 | kref_get(&intfc->ref); |
1844 | 1843 | ||
1845 | alt = usb_altnum_to_altsetting(intf, 0); | 1844 | alt = usb_altnum_to_altsetting(intf, 0); |
@@ -1852,6 +1851,8 @@ free_interfaces: | |||
1852 | if (!alt) | 1851 | if (!alt) |
1853 | alt = &intf->altsetting[0]; | 1852 | alt = &intf->altsetting[0]; |
1854 | 1853 | ||
1854 | intf->intf_assoc = | ||
1855 | find_iad(dev, cp, alt->desc.bInterfaceNumber); | ||
1855 | intf->cur_altsetting = alt; | 1856 | intf->cur_altsetting = alt; |
1856 | usb_enable_interface(dev, intf, true); | 1857 | usb_enable_interface(dev, intf, true); |
1857 | intf->dev.parent = &dev->dev; | 1858 | intf->dev.parent = &dev->dev; |