ASoC: mediatek: Fix an error checking code
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Mon, 7 Aug 2017 00:23:15 +0000 (02:23 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 7 Aug 2017 11:31:57 +0000 (12:31 +0100)
commit8d7313bfb1bb7d71a6ebc503215e4fb4a8964741
tree71c8b302111653d8391984d8cfd71e6d4bf31003
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
ASoC: mediatek: Fix an error checking code

Check the value returned by 'devm_clk_get()' instead of the clock
identifier which can never be an ERR code.

Fixes: d6f3710a56e1 ("ASoC: mediatek: add structure define and clock control for 2701")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt2701/mt2701-afe-clock-ctrl.c