mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 21:53:44 +00:00
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>
This commit is contained in:
parent
35407f9ffd
commit
dcbe6ed32e
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user