Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −6
Original line number Original line Diff line number Diff line
@@ -106,11 +106,7 @@ 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);
			goto parse_error;
		}

			dai->sysclk = clk_get_rate(clk);
			dai->sysclk = clk_get_rate(clk);
	}
	}