diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2018-09-07 01:03:53 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-10 15:14:47 +0100 |
commit | fb77436a444e9836e6b1b0a457bc9c09cdce22f6 (patch) | |
tree | d3cec1ef802951db1eb522e736d57f73dfe58af8 | |
parent | afa88ee37b1383490df003ea005d1d9bc8afa8a8 (diff) | |
download | linux-fb77436a444e9836e6b1b0a457bc9c09cdce22f6.tar.bz2 |
ASoC: txx9: 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>
-rw-r--r-- | sound/soc/txx9/txx9aclc-ac97.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/txx9/txx9aclc-ac97.c b/sound/soc/txx9/txx9aclc-ac97.c index e2ad00e3cae1..1cfca698ae4b 100644 --- a/sound/soc/txx9/txx9aclc-ac97.c +++ b/sound/soc/txx9/txx9aclc-ac97.c @@ -208,13 +208,12 @@ static int txx9aclc_ac97_dev_probe(struct platform_device *pdev) if (err < 0) return err; - return snd_soc_register_component(&pdev->dev, &txx9aclc_ac97_component, + return devm_snd_soc_register_component(&pdev->dev, &txx9aclc_ac97_component, &txx9aclc_ac97_dai, 1); } static int txx9aclc_ac97_dev_remove(struct platform_device *pdev) { - snd_soc_unregister_component(&pdev->dev); snd_soc_set_ac97_ops(NULL); return 0; } |