]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: sun4i: Simplify error handling in probe()
authorBence Csókás <csokas.bence@prolan.hu>
Wed, 25 Jun 2025 08:54:50 +0000 (10:54 +0200)
committerVinod Koul <vkoul@kernel.org>
Thu, 26 Jun 2025 21:04:03 +0000 (14:04 -0700)
commit814f047fc96d6631bb2c76557aad8e4aee8f532b
tree62aec26e16bec69a7d644651a9d5501e3f38e6cc
parente54dd5059d46e44606395cb6ab15f022dc5a5902
dmaengine: sun4i: Simplify error handling in probe()

Clean up error handling by using devm functions and dev_err_probe(). This
should make it easier to add new code, as we can eliminate the "goto
ladder" in sun4i_dma_probe().

Suggested-by: Chen-Yu Tsai <wens@kernel.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Bence Csókás <csokas.bence@prolan.hu>
Link: https://lore.kernel.org/r/20250625085450.154280-2-csokas.bence@prolan.hu
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sun4i-dma.c