提交 e2a19ac6 编写于 作者: X Xiubo Li 提交者: Mark Brown

ASoC: simple-card: Fix the sysclk selection.

For spdif there is no need to do the sysclk setting.
Signed-off-by: NXiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 71467e46
......@@ -106,12 +106,8 @@ asoc_simple_card_sub_parse_of(struct device_node *np,
&dai->sysclk);
} else {
clk = of_clk_get(*node, 0);
if (IS_ERR(clk)) {
ret = PTR_ERR(clk);
goto parse_error;
}
dai->sysclk = clk_get_rate(clk);
if (!IS_ERR(clk))
dai->sysclk = clk_get_rate(clk);
}
ret = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册