usb: atmel_usba_udc: fix it to deal with final dma channel
authorBo Shen <[email protected]>
Thu, 7 Aug 2014 03:43:07 +0000 (11:43 +0800)
committerFelipe Balbi <[email protected]>
Tue, 19 Aug 2014 14:24:41 +0000 (09:24 -0500)
commitbcabdc24dff2d65dcc5bec093f30302283e5fdf4
tree4ff7778baae1956ebfc618db0cf1129aa07e0621
parent20e7d4653d2b580e490dfbb1dfd138cd9844319c
usb: atmel_usba_udc: fix it to deal with final dma channel

As, the interrupt for DMA is counted from 1, so need to checked
the USBA_NR_DMAS, in old way, it only check (USBA_NR_DMAS - 1),
so fix it.

Reported-by: Max Liao <[email protected]>
Signed-off-by: Bo Shen <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
drivers/usb/gadget/udc/atmel_usba_udc.c