Skip to content

Commit

Permalink
ASoC: wcd934x: use the clock provider API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jerome Brunet authored and Mark Brown committed Apr 23, 2021
1 parent 65d1cce commit 104c3a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sound/soc/codecs/wcd934x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 104c3a9

Please sign in to comment.