]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/gadget/epautoconf.c
usb gadget: descriptor copying support
[linux-2.6-omap-h63xx.git] / drivers / usb / gadget / epautoconf.c
index 8bdad221fa91adc094c45ee1dea65cb0677c84e2..9462e30192d8d742d419b59821cb135d89176ae3 100644 (file)
@@ -159,6 +159,7 @@ ep_matches (
        /* MATCH!! */
 
        /* report address */
+       desc->bEndpointAddress &= USB_DIR_IN;
        if (isdigit (ep->name [2])) {
                u8      num = simple_strtol (&ep->name [2], NULL, 10);
                desc->bEndpointAddress |= num;