Skip to content

Commit

Permalink
ASoC: wm8962: Reinitialise the IRQ completion rather than just trying it
Browse files Browse the repository at this point in the history
This is better practice.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Feb 3, 2014
1 parent d6f95e5 commit 9d7433b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm8962.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9d7433b

Please sign in to comment.