diff options
author | Mark Brown <broonie@linaro.org> | 2014-01-30 20:59:31 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-03 13:50:59 +0100 |
commit | df6ab65f2fef3d7b769f3ba87c7bb265ace80b4e (patch) | |
tree | 3018457386def65dd246b73a1e132449cf191a2b /sound/soc/codecs/wm8962.c | |
parent | ASoC: wm8962: Hold a runtime PM reference while handling interrupts (diff) | |
download | linux-df6ab65f2fef3d7b769f3ba87c7bb265ace80b4e.tar.xz linux-df6ab65f2fef3d7b769f3ba87c7bb265ace80b4e.zip |
ASoC: wm8962: Check if we runtime resume the device when starting FLL
Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8962.c')
-rw-r--r-- | sound/soc/codecs/wm8962.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 1996567346c6..d7d43c9371f4 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -2886,7 +2886,11 @@ static int wm8962_set_fll(struct snd_soc_codec *codec, int fll_id, int source, try_wait_for_completion(&wm8962->fll_lock); - pm_runtime_get_sync(codec->dev); + ret = pm_runtime_get_sync(codec->dev); + if (ret < 0) { + dev_err(codec->dev, "Failed to resume device: %d\n", ret); + return ret; + } snd_soc_update_bits(codec, WM8962_FLL_CONTROL_1, WM8962_FLL_FRAC | WM8962_FLL_REFCLK_SRC_MASK | |