ASoC: rockchip: i2s: Adjust devm usage
authorVaishali Thakkar <vthakkar1994@gmail.com>
Sat, 15 Aug 2015 01:51:00 +0000 (07:21 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 19 Aug 2015 16:04:59 +0000 (09:04 -0700)
commitebb75c0bdba238013976b53e256f8d13216304e4
treeb924061e60edd493c5f4c6f691b143bd503d9d6e
parent86059653ea7ca7b30ed25d6bec5807ba59a4f2e6
ASoC: rockchip: i2s: Adjust devm usage

Remove use of snd_soc_unregister_component in remove function
as devm_snd_soc_register_component in probe function automatically
handles it.

Also, convert call of snd_dmaengine_pcm_register to managed resource
function devm_snd_dmaengine_pcm_register and remove usage of
snd_dmaengine_pcm_unregister in probe and remove functions.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_i2s.c