提交 061015f7 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

ASoC: rsrc-card: tidyup return value of clock error

Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: NKeita Kobayashi <keita.kobayashi.ym@renesas.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 fe3bd184
...@@ -283,10 +283,8 @@ rsrc_card_sub_parse_of(struct rsrc_card_priv *priv, ...@@ -283,10 +283,8 @@ rsrc_card_sub_parse_of(struct rsrc_card_priv *priv,
*/ */
if (of_property_read_bool(np, "clocks")) { if (of_property_read_bool(np, "clocks")) {
clk = of_clk_get(np, 0); clk = of_clk_get(np, 0);
if (IS_ERR(clk)) { if (IS_ERR(clk))
ret = PTR_ERR(clk); return PTR_ERR(clk);
return ret;
}
dai->sysclk = clk_get_rate(clk); dai->sysclk = clk_get_rate(clk);
dai->clk = clk; dai->clk = clk;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册