diff options
| author | Kuninori Morimoto <[email protected]> | 2019-10-02 14:22:32 +0900 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2019-10-03 14:35:42 +0100 |
| commit | 4dc0e7df62839d052476de0f8447f29f857cecda (patch) | |
| tree | 4392afe1ff1944a51a6e7aeabb92cc1ce3d20530 /tools/perf/scripts/python | |
| parent | 5a7423993007d08bfc7b982451eca0526f51744d (diff) | |
ASoC: soc-core: use devm_kzalloc() for rtd
Current rtd, rtd->dev, rtd->codec_dais are created by normal kzalloc(),
but we want to use devm_kzalloc() as much as possible.
Created rtd->dev is registered by device_register() at
soc_new_pcm_runtime(), and it will be freed at
soc_free_pcm_runtime() by device_unregister().
This means, if we can use devm_kzalloc(rtd->dev, xxx) for
rtd / rtd->codec_dais, all these are automatically freed
via soc_free_pcm_runtime().
This patch uses devm_kzalloc(rtd->dev, xxx) for rtd / rtd->codec_dais.
Signed-off-by: Kuninori Morimoto <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions