]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/gadget/epautoconf.c
USB-CDC: correct wrong alignment in ether.c
[u-boot] / drivers / usb / gadget / epautoconf.c
index c7fad3992e0490bbf0fa1297c04858b391670684..e11cc204b7d0623f9050d23cee852e12e38536fc 100644 (file)
@@ -156,7 +156,7 @@ ep_matches (
 
        /* report address */
        if (isdigit (ep->name [2])) {
-               u8      num = simple_strtol (&ep->name [2], NULL, 10);
+               u8      num = simple_strtoul (&ep->name [2], NULL, 10);
                desc->bEndpointAddress |= num;
 #ifdef MANY_ENDPOINTS
        } else if (desc->bEndpointAddress & USB_DIR_IN) {