usb: renesas_usbhs: use usb_endpoint_maxp()
authorkuninori.morimoto.gx@renesas.com <kuninori.morimoto.gx@renesas.com>
Mon, 25 Jul 2011 07:39:51 +0000 (00:39 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Aug 2011 22:54:39 +0000 (15:54 -0700)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/renesas_usbhs/pipe.c

index 1b14cae..3bbbbb4 100644 (file)
@@ -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,