Commit e2a19ac6 authored by Xiubo Li's avatar Xiubo Li Committed by Mark Brown

ASoC: simple-card: Fix the sysclk selection.

For spdif there is no need to do the sysclk setting.
Signed-off-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 71467e46
...@@ -106,12 +106,8 @@ asoc_simple_card_sub_parse_of(struct device_node *np, ...@@ -106,12 +106,8 @@ asoc_simple_card_sub_parse_of(struct device_node *np,
&dai->sysclk); &dai->sysclk);
} else { } else {
clk = of_clk_get(*node, 0); clk = of_clk_get(*node, 0);
if (IS_ERR(clk)) { if (!IS_ERR(clk))
ret = PTR_ERR(clk); dai->sysclk = clk_get_rate(clk);
goto parse_error;
}
dai->sysclk = clk_get_rate(clk);
} }
ret = 0; ret = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment