]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitccc15009d8ac93e8834631e10097f27160acc00d
treeeb7d42a7403c60244de909b45eb36607ceaa9aa6
parent269003fcecdfcc606748f1b6e5240cb6ca389985
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