ASoC: sun4i-spdif: drop unnessary snd_soc_unregister_component()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 6 Feb 2017 15:22:24 +0000 (15:22 +0000)
committerMark Brown <broonie@kernel.org>
Sun, 19 Feb 2017 16:08:14 +0000 (16:08 +0000)
commitc97c4604c008f3d489cc3201de80e313aeb501d6
tree4b1601d38dc466b7370d331885fdceb4f77cfd56
parentf55d404f49194563974f5462f9f4bd7cbc48d9c6
ASoC: sun4i-spdif: drop unnessary snd_soc_unregister_component()

It's not necessary to unregister a component registered
with devm_snd_soc_register_component(). Also removed
pointness clk_disable_unprepare() from error path and
snd_soc_unregister_platform() from the remove.

Fixes: f8260afa444b ("ASoC: sunxi: Add support for the SPDIF block")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-spdif.c