diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2021-04-21 14:05:09 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-23 13:16:24 +0100 |
commit | 104c3a9ed07411288efcd34f08a577df318aafc0 (patch) | |
tree | 36e99221a6cc88e9ed9451ba122895e4cbbc50dc /sound | |
parent | 65d1cce726d4912793d0a84c55ecdb0ef5832130 (diff) | |
download | linux-104c3a9ed07411288efcd34f08a577df318aafc0.tar.gz linux-104c3a9ed07411288efcd34f08a577df318aafc0.tar.bz2 linux-104c3a9ed07411288efcd34f08a577df318aafc0.zip |
ASoC: wcd934x: use the clock provider API
Clock providers should use the clk_hw API
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20210421120512.413057-3-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wcd934x.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/codecs/wcd934x.c b/sound/soc/codecs/wcd934x.c index cddc49bbb7f6..046874ef490e 100644 --- a/sound/soc/codecs/wcd934x.c +++ b/sound/soc/codecs/wcd934x.c @@ -2116,11 +2116,13 @@ static struct clk *wcd934x_register_mclk_output(struct wcd934x_codec *wcd) wcd->hw.init = &init; hw = &wcd->hw; - ret = clk_hw_register(wcd->dev->parent, hw); + ret = devm_clk_hw_register(wcd->dev->parent, hw); if (ret) return ERR_PTR(ret); - of_clk_add_provider(np, of_clk_src_simple_get, hw->clk); + ret = devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, hw); + if (ret) + return ERR_PTR(ret); return NULL; } |