greybus: don't assume PAGE_SIZE for URB size
authorAlex Elder <elder@linaro.org>
Wed, 12 Nov 2014 21:17:50 +0000 (15:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 21:11:35 +0000 (13:11 -0800)
commit3e9cb4a11831e8c0bf91cd880845b6b35051a484
tree708ddc36a0a88394ccc4dc6901cb8fa171719b33
parent34c6507ca8e675ca0afa11ca0076d108027b0b2f
greybus: don't assume PAGE_SIZE for URB size

The buffers allocated for CPort URBS are ES1_GBUF_MSG_SIZE bytes.
But usb_fill_bulk_urb() passes PAGE_SIZE as its size.  They happen
to be the same, but the code is wrong, so fix it.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/es1-ap-usb.c