Skip to content

Commit

Permalink
usb: renesas_usbhs: use usb_endpoint_maxp()
Browse files Browse the repository at this point in the history
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
kuninori.morimoto.gx@renesas.com authored and Greg Kroah-Hartman committed Aug 22, 2011
1 parent 939f325 commit dfd8c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/renesas_usbhs/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dfd8c81

Please sign in to comment.