From: Mark Brown Date: Thu, 30 Jan 2014 20:32:06 +0000 (+0000) Subject: ASoC: wm8962: Reinitialise the IRQ completion rather than just trying it X-Git-Tag: firefly_0821_release~176^2~4090^2~1^2~5^2~1^3~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9d7433b064a6349aae8a266e8243ef75637bec45;p=firefly-linux-kernel-4.4.55.git ASoC: wm8962: Reinitialise the IRQ completion rather than just trying it This is better practice. Signed-off-by: Mark Brown Acked-by: Charles Keepax --- diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index cd96d463a505..c06bb5088e60 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -2884,7 +2884,7 @@ static int wm8962_set_fll(struct snd_soc_codec *codec, int fll_id, int source, snd_soc_write(codec, WM8962_FLL_CONTROL_7, fll_div.lambda); snd_soc_write(codec, WM8962_FLL_CONTROL_8, fll_div.n); - try_wait_for_completion(&wm8962->fll_lock); + reinit_completion(&wm8962->fll_lock); ret = pm_runtime_get_sync(codec->dev); if (ret < 0) {