Commit 976814bb authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: fix the pcwd_usb driver due to act_altsetting going away.

parent 536a5db5
......@@ -589,7 +589,7 @@ static int usb_pcwd_probe(struct usb_interface *interface, const struct usb_devi
}
/* get the active interface descriptor */
iface_desc = &interface->altsetting[interface->act_altsetting];
iface_desc = interface->cur_altsetting;
/* check out that we have a HID device */
if (!(iface_desc->desc.bInterfaceClass == USB_CLASS_HID)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment