dmaengine: ste_dma40: Return error codes properly
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 16 May 2023 12:55:37 +0000 (14:55 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 16 May 2023 17:30:20 +0000 (23:00 +0530)
commit2893f6bc9d4076c48f8dd717b71baa29fe6adcae
tree2d62b8eba6b84408a24bcba003c18b4fac3a55d1
parent339f5041089a22646372d3ebdeec94c25e8d4e29
dmaengine: ste_dma40: Return error codes properly

This makes the probe() and its subfunction d40_hw_detect_init()
return proper error codes.

One effect of this is that deferred probe, e.g from the clock,
will start to work, would it happen. Also it is better design.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230417-ux500-dma40-cleanup-v3-7-60bfa6785968@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ste_dma40.c