lkml.org 
[lkml]   [2020]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v7 13/21] ASoC: tegra: Use device managed resource APIs to get the clock
From
Date

On 1/8/2020 9:55 AM, Sowjanya Komatineni wrote:
> tegra_asoc_utils uses clk_get() and clk_put() to get the clock
> and 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>
> Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>

Reviewed-by: Sameer Pujar <spujar@nvidia.com>

> ---
> sound/soc/tegra/tegra_alc5632.c | 7 +------
> sound/soc/tegra/tegra_asoc_utils.c | 34 +++++++---------------------------
> 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, 40 insertions(+), 130 deletions(-)
. . .

\
 
 \ /
  Last update: 2020-01-08 06:27    [W:0.105 / U:1.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site