diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2018-09-07 01:01:34 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-10 15:13:43 +0100 |
commit | 4fe1984ebc086ee39dd57983a7fee84c96c954a7 (patch) | |
tree | 7740e45a43facf81a6effced288018d85492acff /sound | |
parent | 10ccaa39d7628470a3de4aae9d2346a55cbee46e (diff) | |
download | talos-op-linux-4fe1984ebc086ee39dd57983a7fee84c96c954a7.tar.gz talos-op-linux-4fe1984ebc086ee39dd57983a7fee84c96c954a7.zip |
ASoC: rt5668: 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')
-rw-r--r-- | sound/soc/codecs/rt5668.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/rt5668.c b/sound/soc/codecs/rt5668.c index 3c19d03f2446..4412cd2910cd 100644 --- a/sound/soc/codecs/rt5668.c +++ b/sound/soc/codecs/rt5668.c @@ -2587,14 +2587,12 @@ static int rt5668_i2c_probe(struct i2c_client *i2c, } - return snd_soc_register_component(&i2c->dev, &soc_component_dev_rt5668, + return devm_snd_soc_register_component(&i2c->dev, &soc_component_dev_rt5668, rt5668_dai, ARRAY_SIZE(rt5668_dai)); } static int rt5668_i2c_remove(struct i2c_client *i2c) { - snd_soc_unregister_component(&i2c->dev); - return 0; } |