projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: use usb_endpoint_maxp() instead of le16_to_cpu()
[linux-2.6-block.git]
/
drivers
/
usb
/
gadget
/
pxa27x_udc.c
diff --git
a/drivers/usb/gadget/pxa27x_udc.c
b/drivers/usb/gadget/pxa27x_udc.c
index 85b68c75dc9da57a82f183bcb90107f7a68a0980..d21455f457e21d095f504fa7211dc35c397e69b5 100644
(file)
--- a/
drivers/usb/gadget/pxa27x_udc.c
+++ b/
drivers/usb/gadget/pxa27x_udc.c
@@
-1439,7
+1439,7
@@
static int pxa_ep_enable(struct usb_ep *_ep,
return -EINVAL;
}
- if (ep->fifo_size <
le16_to_cpu(desc->wMaxPacketSize
)) {
+ if (ep->fifo_size <
usb_endpoint_maxp(desc
)) {
ep_err(ep, "bad maxpacket\n");
return -ERANGE;
}