]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit592d2fac07dce3ede1feb0d6944143a3cce3deb6
treedd55db2fb27209480163df2e9d5a5bd492b9f131
parent7855fcc07be326322b44982a21760fd9bd8e2b92
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: 1c4cbb8cc7e2 ("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