diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2018-09-07 01:01:50 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-10 15:13:58 +0100 |
commit | 007ac42db9ff4c36e91d192353421c6209058e06 (patch) | |
tree | 6d699cefbb7a4db56134cea72aea59570b3f7e20 /sound | |
parent | 4fe1984ebc086ee39dd57983a7fee84c96c954a7 (diff) | |
download | talos-op-linux-007ac42db9ff4c36e91d192353421c6209058e06.tar.gz talos-op-linux-007ac42db9ff4c36e91d192353421c6209058e06.zip |
ASoC: tscs454: 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/tscs454.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tscs454.c b/sound/soc/codecs/tscs454.c index ff85a0bf6170..93d84e5ae2d5 100644 --- a/sound/soc/codecs/tscs454.c +++ b/sound/soc/codecs/tscs454.c @@ -3459,7 +3459,7 @@ static int tscs454_i2c_probe(struct i2c_client *i2c, /* Sync pg sel reg with cache */ regmap_write(tscs454->regmap, R_PAGESEL, 0x00); - ret = snd_soc_register_component(&i2c->dev, &soc_component_dev_tscs454, + ret = devm_snd_soc_register_component(&i2c->dev, &soc_component_dev_tscs454, tscs454_dais, ARRAY_SIZE(tscs454_dais)); if (ret) { dev_err(&i2c->dev, "Failed to register component (%d)\n", ret); |