diff options
Diffstat (limited to 'drivers/usb/gadget/epautoconf.c')
-rw-r--r-- | drivers/usb/gadget/epautoconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index 9462e30192d8..a36b1175b18d 100644 --- a/drivers/usb/gadget/epautoconf.c +++ b/drivers/usb/gadget/epautoconf.c | |||
@@ -161,7 +161,7 @@ ep_matches ( | |||
161 | /* report address */ | 161 | /* report address */ |
162 | desc->bEndpointAddress &= USB_DIR_IN; | 162 | desc->bEndpointAddress &= USB_DIR_IN; |
163 | if (isdigit (ep->name [2])) { | 163 | if (isdigit (ep->name [2])) { |
164 | u8 num = simple_strtol (&ep->name [2], NULL, 10); | 164 | u8 num = simple_strtoul (&ep->name [2], NULL, 10); |
165 | desc->bEndpointAddress |= num; | 165 | desc->bEndpointAddress |= num; |
166 | #ifdef MANY_ENDPOINTS | 166 | #ifdef MANY_ENDPOINTS |
167 | } else if (desc->bEndpointAddress & USB_DIR_IN) { | 167 | } else if (desc->bEndpointAddress & USB_DIR_IN) { |