usb: atmel_usba_udc: fix it to deal with final dma channel
authorBo Shen <voice.shen@atmel.com>
Thu, 7 Aug 2014 03:43:07 +0000 (11:43 +0800)
committerFelipe Balbi <balbi@ti.com>
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 <liaops@embest-tech.com>
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/atmel_usba_udc.c