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
/
musb
/
musb_gadget.c
diff --git
a/drivers/usb/musb/musb_gadget.c
b/drivers/usb/musb/musb_gadget.c
index 8c41a2e6ea7702e8906771d3bf5e7810ad412937..44b331a74d587c7a9272758ac5e4c62b1cc8c45f 100644
(file)
--- a/
drivers/usb/musb/musb_gadget.c
+++ b/
drivers/usb/musb/musb_gadget.c
@@
-1020,7
+1020,7
@@
static int musb_gadget_enable(struct usb_ep *ep,
goto fail;
/* REVISIT this rules out high bandwidth periodic transfers */
- tmp =
le16_to_cpu(desc->wMaxPacketSize
);
+ tmp =
usb_endpoint_maxp(desc
);
if (tmp & ~0x07ff) {
int ok;