global: Convert simple_strtoul() with decimal to dectoul()
[platform/kernel/u-boot.git] / drivers / usb / gadget / epautoconf.c
index 7da334f..01337d6 100644 (file)
@@ -144,7 +144,7 @@ static int ep_matches(
 
        /* report address */
        if (isdigit(ep->name[2])) {
-               u8      num = simple_strtoul(&ep->name[2], NULL, 10);
+               u8      num = dectoul(&ep->name[2], NULL);
                desc->bEndpointAddress |= num;
 #ifdef MANY_ENDPOINTS
        } else if (desc->bEndpointAddress & USB_DIR_IN) {