ASoC: sh: rz-ssi: Release the DMA channels in rz_ssi_probe() error path
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tue, 26 Apr 2022 07:49:22 +0000 (08:49 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 27 Apr 2022 16:22:50 +0000 (17:22 +0100)
commit767e6f26204d3f5406630e86b720d01818b8616d
tree15224311ce2f64d531a02b1e759ff8166f12bf47
parent91686a3984f34df0ab844cdbaa7e4d9621129f5d
ASoC: sh: rz-ssi: Release the DMA channels in rz_ssi_probe() error path

DMA channels requested by rz_ssi_dma_request() in rz_ssi_probe() were
never released in the error path apart from one place. This patch fixes
this issue by calling rz_ssi_release_dma_channels() in the error path.

Fixes: 26ac471c5354 ("ASoC: sh: rz-ssi: Add SSI DMAC support")
Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20220426074922.13319-4-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rz-ssi.c