ASoC: soc-core: use devm_xxx for component related resource
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 2 Oct 2019 05:22:57 +0000 (14:22 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 3 Oct 2019 13:36:39 +0000 (14:36 +0100)
commit50014499e6a45edd7ba1facf2133c03bbc7d8266
treeeb7d42a7403c60244de909b45eb36607ceaa9aa6
parent0f23f718ecbc135866ac40db3424dd75f01c76ea
ASoC: soc-core: use devm_xxx for component related resource

dai / component related resources are created when component is
registered, and it will be freed when component was unregistered.
These resources are not re-used after that.
This means, we can use devm_xxx for dai / component, without
thinking about kfree().
This patch uses devm_xxx for these.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/8736gbbu1a.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c