dmaengine: zynqmp_dma: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
authorRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Tue, 10 May 2022 07:12:42 +0000 (12:42 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 16 May 2022 12:51:47 +0000 (18:21 +0530)
commit517a710ac8fe9cbc48d0ec3ca81377f6ef3b86b7
tree5d95adb364e077e8665f86cb10c1f307817b5ddd
parent9126518e0439bc4b47b15d0da42f0cdba7a74b3a
dmaengine: zynqmp_dma: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()

pm_runtime_resume_and_get() automatically handle dev->power.usage_count
decrement on errors, so prefer using it and also implement it's error
handling.

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Link: https://lore.kernel.org/r/1652166762-18317-4-git-send-email-radhey.shyam.pandey@xilinx.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/zynqmp_dma.c