Skip to content
Commit 05f4fae9 authored by Dongliang Mu's avatar Dongliang Mu Committed by Vinod Koul
Browse files

dmaengine: rcar-dmac: refactor the error handling code of rcar_dmac_probe



In rcar_dmac_probe, if pm_runtime_resume_and_get fails, it forgets to
disable runtime PM. And of_dma_controller_free should only be invoked
after the success of of_dma_controller_register.

Fix this by refactoring the error handling code.

Signed-off-by: default avatarDongliang Mu <mudongliangabcd@gmail.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20211020143546.3436205-1-mudongliangabcd@gmail.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent e7e1e880
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment