ASoC: wm8400: Use devm_snd_soc_register_component()
authorweiyongjun (A) <weiyongjun1@huawei.com>
Fri, 16 Mar 2018 07:32:07 +0000 (07:32 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 19 Mar 2018 00:59:27 +0000 (17:59 -0700)
commit822e70a8210b7038e1f54c43ca6c76c3b9f89803
treeb1b796fbf8cc7dac59d249c77baaebcd99823444
parent10dc44c6462db0a4b60efa3add18684205088583
ASoC: wm8400: 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: 10dc44c6462d ("ASoC: wm8400: replace codec to component")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8400.c