dmaengine: ti: edma: Fix error return code in edma_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 12 Dec 2019 11:46:22 +0000 (11:46 +0000)
committerVinod Koul <vkoul@kernel.org>
Wed, 18 Dec 2019 06:09:34 +0000 (11:39 +0530)
commitd1fd03a35efc6285e43f4ef35ef04dbf2c9389c6
tree089d3f96bfe5ba0765714a0a9c640271ce9009bc
parenta5b982af953bcc838cd198b0434834cc1dff14ec
dmaengine: ti: edma: Fix error return code in edma_probe()

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

Fixes: 2a03c1314506 ("dmaengine: ti: edma: add missed operations")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20191212114622.127322-1-weiyongjun1@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/edma.c