diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-06-28 13:09:50 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-07-02 13:51:49 +0100 |
commit | dcbe6ed32e06b7811e082806a9c0f84d3a238d18 (patch) | |
tree | e78db9a427db479ef35ce7cb127161b0b9fbe98a | |
parent | 35407f9ffd84560501f72ee3954344f8e5b49264 (diff) |
ASoC: cros_ec_codec: use devm_snd_soc_register_component()
We have devm_xxx version of snd_soc_register_component,
let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/cros_ec_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cros_ec_codec.c b/sound/soc/codecs/cros_ec_codec.c index 99a3af8a15ff..0ac3e520653f 100644 --- a/sound/soc/codecs/cros_ec_codec.c +++ b/sound/soc/codecs/cros_ec_codec.c @@ -413,7 +413,7 @@ static int cros_ec_codec_platform_probe(struct platform_device *pd) platform_set_drvdata(pd, codec_data); - return snd_soc_register_component(dev, &cros_ec_component_driver, + return devm_snd_soc_register_component(dev, &cros_ec_component_driver, cros_ec_dai, ARRAY_SIZE(cros_ec_dai)); } |