Thread (47 messages) 47 messages, 7 authors, 2020-04-21

Re: [PATCH v8 12/22] ASoC: tegra: Use device managed resource APIs to get the clock

From: Thierry Reding <hidden>
Date: 2020-02-17 09:48:33
Also in: linux-clk, linux-tegra, lkml

On Mon, Jan 13, 2020 at 11:24:17PM -0800, Sowjanya Komatineni wrote:
tegra_asoc_utils uses clk_get() to get the clock and clk_put() to
free them explicitly.

This patch updates it to use device managed resource API
devm_clk_get() so the clock will be automatically released and freed
when the device is unbound and removes tegra_asoc_utils_fini() as
its no longer needed.

Tested-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Sameer Pujar <redacted>
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
---
 sound/soc/tegra/tegra_alc5632.c    |  7 +------
 sound/soc/tegra/tegra_asoc_utils.c | 39 +++++++++-----------------------------
 sound/soc/tegra/tegra_asoc_utils.h |  1 -
 sound/soc/tegra/tegra_max98090.c   | 22 ++++++---------------
 sound/soc/tegra/tegra_rt5640.c     | 22 ++++++---------------
 sound/soc/tegra/tegra_rt5677.c     |  7 +------
 sound/soc/tegra/tegra_sgtl5000.c   |  7 +------
 sound/soc/tegra/tegra_wm8753.c     | 22 ++++++---------------
 sound/soc/tegra/tegra_wm8903.c     | 22 ++++++---------------
 sound/soc/tegra/tegra_wm9712.c     |  8 ++------
 sound/soc/tegra/trimslice.c        | 18 ++++--------------
 11 files changed, 42 insertions(+), 133 deletions(-)
Acked-by: Thierry Reding <redacted>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help