ASoC: simple-card: Fix the sysclk selection.
For spdif there is no need to do the sysclk setting. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
71467e4641
commit
e2a19ac6c5
|
@ -106,11 +106,7 @@ 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;
|
||||
}
|
||||
|
||||
if (!IS_ERR(clk))
|
||||
dai->sysclk = clk_get_rate(clk);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue