Message ID | 20180911112344.8701C1121AF8@debutante.sirena.org.uk |
---|---|
State | Accepted |
Commit | 4fe1984ebc086ee39dd57983a7fee84c96c954a7 |
Headers | show |
Series | Applied "ASoC: rt5668: use devm_snd_soc_register_component()" to the asoc tree | expand |
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; }