Biju Das c75ed9f54c
ASoC: sh: rz-ssi: Improve error handling in rz_ssi_probe() error path
We usually do cleanup in reverse order of init. Currently in case of
error rz_ssi_release_dma_channels() done in the reverse order. This
patch improves error handling in rz_ssi_probe() error path.

While at it, use "goto cleanup" style to reduce code duplication.

Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20220728092612.38858-1-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-08-05 12:57:26 +01:00
..
2021-09-03 15:33:47 -07:00
2022-05-30 10:56:18 -07:00
2022-05-30 10:56:18 -07:00
2022-06-30 10:56:27 +01:00
2022-03-23 15:11:12 -07:00
2022-01-14 18:50:52 -05:00