ASoC: da7210: Use devm_snd_soc_register_component()
authorweiyongjun (A) <weiyongjun1@huawei.com>
Fri, 16 Mar 2018 07:32:14 +0000 (07:32 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 19 Mar 2018 00:59:39 +0000 (17:59 -0700)
commitc0153b126cc6e14335b142a799c9aa8990e28669
tree79b0bb7587d405e304f315d4a5c62925e0e6e2b5
parentd06f33aed85cf73703555879157bf33866f8af05
ASoC: da7210: Use devm_snd_soc_register_component()

Since the remove callback is removed, the snd_soc_unregister_component()
is missing when remove device. Using devm_snd_soc_register_component()
instead of snd_soc_register_component().

Fixes: d06f33aed85c ("ASoC: da7210: replace codec to component")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7210.c