]> git.ipfire.org Git - thirdparty/kernel/linux.git/blobdiff - sound/soc/codecs/cros_ec_codec.c
ASoC: cros_ec_codec: use devm_snd_soc_register_component()
[thirdparty/kernel/linux.git] / sound / soc / codecs / cros_ec_codec.c
index 99a3af8a15ff47dbd91b4816a4d53dca65cc735e..0ac3e520653f562f582a91b09d4791aeab81b8b5 100644 (file)
@@ -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));
 }