OSDN Git Service

dmaengine: ti: edma: add missed operations
authorChuhong Yuan <hslester96@gmail.com>
Sun, 24 Nov 2019 05:28:55 +0000 (13:28 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 10 Dec 2019 06:02:10 +0000 (11:32 +0530)
commit2a03c1314506557277829562dd2ec5c11a6ea914
treedd55db2fb27209480163df2e9d5a5bd492b9f131
parente42617b825f8073569da76dc4510bfa019b1c35a
dmaengine: ti: edma: add missed operations

The driver forgets to call pm_runtime_disable and pm_runtime_put_sync in
probe failure and remove.
Add the calls and modify probe failure handling to fix it.

To simplify the fix, the patch adjusts the calling order and merges checks
for devm_kcalloc.

Fixes: 2b6b3b742019 ("ARM/dmaengine: edma: Merge the two drivers under drivers/dma/")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20191124052855.6472-1-hslester96@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/edma.c