projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35407f9
)
ASoC: cros_ec_codec: use devm_snd_soc_register_component()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Fri, 28 Jun 2019 04:09:50 +0000
(13:09 +0900)
committer
Mark Brown
<broonie@kernel.org>
Tue, 2 Jul 2019 12:51:49 +0000
(13:51 +0100)
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>
sound/soc/codecs/cros_ec_codec.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cros_ec_codec.c
b/sound/soc/codecs/cros_ec_codec.c
index 99a3af8a15ff47dbd91b4816a4d53dca65cc735e..0ac3e520653f562f582a91b09d4791aeab81b8b5 100644
(file)
--- 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));
}