summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/hdac_hda.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2018-09-07 01:01:19 +0000
committerMark Brown <broonie@kernel.org>2018-09-10 15:13:27 +0100
commit10ccaa39d7628470a3de4aae9d2346a55cbee46e (patch)
tree5361af86f56a8859b8c40b04c7857ed9b816ac27 /sound/soc/codecs/hdac_hda.c
parent570f75b93551a6d70ecbd0a7b6d962b4ca4722f0 (diff)
downloadlinux-10ccaa39d7628470a3de4aae9d2346a55cbee46e.tar.bz2
ASoC: hdac_hda: use devm_snd_soc_register_component()
Now we have devm_snd_soc_register_component(). Let's use it instead of snd_soc_register_component(). Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/hdac_hda.c')
-rw-r--r--sound/soc/codecs/hdac_hda.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/hdac_hda.c b/sound/soc/codecs/hdac_hda.c
index 8c25a1332fa7..2aaa83028e55 100644
--- a/sound/soc/codecs/hdac_hda.c
+++ b/sound/soc/codecs/hdac_hda.c
@@ -448,7 +448,7 @@ static int hdac_hda_dev_probe(struct hdac_device *hdev)
return -ENOMEM;
/* ASoC specific initialization */
- ret = snd_soc_register_component(&hdev->dev,
+ ret = devm_snd_soc_register_component(&hdev->dev,
&hdac_hda_codec, hdac_hda_dais,
ARRAY_SIZE(hdac_hda_dais));
if (ret < 0) {
@@ -464,7 +464,6 @@ static int hdac_hda_dev_probe(struct hdac_device *hdev)
static int hdac_hda_dev_remove(struct hdac_device *hdev)
{
- snd_soc_unregister_component(&hdev->dev);
return 0;
}