dmaengine: zxdma: Fix off-by-one for testing valid pchan request
authorAxel Lin <axel.lin@ingics.com>
Sat, 26 Sep 2015 09:15:47 +0000 (17:15 +0800)
committerVinod Koul <vinod.koul@intel.com>
Thu, 1 Oct 2015 02:12:27 +0000 (07:42 +0530)
commitaa3ee5f569fda51e54c224c0df60e187e9c5e582
treedf659cc3fe3093b686ec5fd3675358aedcad562b
parent0be2136b67067617b36c70e525d7534108361e36
dmaengine: zxdma: Fix off-by-one for testing valid pchan request

The valid pchan range is 0 ~ d->dma_requests - 1.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/zx296702_dma.c