ASoC: rockchip: spdif: Convert to use devm_snd_dmaengine_pcm_register
authorAxel Lin <axel.lin@ingics.com>
Tue, 13 Oct 2015 02:37:10 +0000 (10:37 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 19 Oct 2015 19:15:16 +0000 (20:15 +0100)
commit2057020db384cb971cfd51296426f447e6d66b64
treef039550b69ffb9e99a785bd12d4e83c6f87ec696
parentf874b80e1571118fcf4554878633556f06f998e6
ASoC: rockchip: spdif: Convert to use devm_snd_dmaengine_pcm_register

Use resource managed API then we can remove snd_dmaengine_pcm_unregister()
and snd_soc_unregister_component() calls in .probe error path and .remove.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_spdif.c