dmaengine: edma: Fix error return code in edma_alloc_chan_resources()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 15:16:35 +0000 (15:16 +0000)
committerVinod Koul <vinod.koul@intel.com>
Tue, 18 Oct 2016 14:48:14 +0000 (20:18 +0530)
commitf95df7d6cd92787d54c9ad3d4843f9bcd137f9db
tree3a17d20c014cf45286a17604527f92d2dd59ec3c
parent1001354ca34179f3db924eb66672442a173147dc
dmaengine: edma: Fix error return code in edma_alloc_chan_resources()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/edma.c