summaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs
diff options
context:
space:
mode:
authorkuninori.morimoto.gx@renesas.com <kuninori.morimoto.gx@renesas.com>2011-07-25 09:39:51 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-23 00:54:39 +0200
commitdfd8c81fd1c09c740140a2334669994d5c6edcaa (patch)
treeae34993ff4d3ae6040939680fa13c12347140348 /drivers/usb/renesas_usbhs
parentusb: add usb_endpoint_maxp() macro (diff)
downloadlinux-dfd8c81fd1c09c740140a2334669994d5c6edcaa.tar.xz
linux-dfd8c81fd1c09c740140a2334669994d5c6edcaa.zip
usb: renesas_usbhs: use usb_endpoint_maxp()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r--drivers/usb/renesas_usbhs/pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/renesas_usbhs/pipe.c b/drivers/usb/renesas_usbhs/pipe.c
index 1b14cae45704..3bbbbb403f01 100644
--- a/drivers/usb/renesas_usbhs/pipe.c
+++ b/drivers/usb/renesas_usbhs/pipe.c
@@ -392,7 +392,7 @@ static u16 usbhsp_setup_pipemaxp(struct usbhs_pipe *pipe,
/* host should set DEVSEL */
/* reutn MXPS */
- return PIPE_MAXP_MASK & le16_to_cpu(desc->wMaxPacketSize);
+ return PIPE_MAXP_MASK & usb_endpoint_maxp(desc);
}
static u16 usbhsp_setup_pipebuff(struct usbhs_pipe *pipe,