aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/message.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
index 644a3d4f12a..208c6bd83a8 100644
--- a/drivers/usb/core/message.c
+++ b/drivers/usb/core/message.c
@@ -1457,12 +1457,11 @@ free_interfaces:
1457 */ 1457 */
1458 for (i = 0; i < nintf; ++i) { 1458 for (i = 0; i < nintf; ++i) {
1459 struct usb_interface *intf = cp->interface[i]; 1459 struct usb_interface *intf = cp->interface[i];
1460 struct usb_host_interface *alt = intf->cur_altsetting;
1461 1460
1462 dev_dbg (&dev->dev, 1461 dev_dbg (&dev->dev,
1463 "adding %s (config #%d, interface %d)\n", 1462 "adding %s (config #%d, interface %d)\n",
1464 intf->dev.bus_id, configuration, 1463 intf->dev.bus_id, configuration,
1465 alt->desc.bInterfaceNumber); 1464 intf->cur_altsetting->desc.bInterfaceNumber);
1466 ret = device_add (&intf->dev); 1465 ret = device_add (&intf->dev);
1467 if (ret != 0) { 1466 if (ret != 0) {
1468 dev_err(&dev->dev, 1467 dev_err(&dev->dev,