aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8962.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 88223608a33f..f3f71ba0ed12 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -3800,7 +3800,7 @@ static int wm8962_runtime_resume(struct device *dev)
3800 if (ret != 0) { 3800 if (ret != 0) {
3801 dev_err(dev, 3801 dev_err(dev,
3802 "Failed to enable supplies: %d\n", ret); 3802 "Failed to enable supplies: %d\n", ret);
3803 return ret; 3803 goto disable_clock;
3804 } 3804 }
3805 3805
3806 regcache_cache_only(wm8962->regmap, false); 3806 regcache_cache_only(wm8962->regmap, false);
@@ -3838,6 +3838,10 @@ static int wm8962_runtime_resume(struct device *dev)
3838 msleep(5); 3838 msleep(5);
3839 3839
3840 return 0; 3840 return 0;
3841
3842disable_clock:
3843 clk_disable_unprepare(wm8962->pdata.mclk);
3844 return ret;
3841} 3845}
3842 3846
3843static int wm8962_runtime_suspend(struct device *dev) 3847static int wm8962_runtime_suspend(struct device *dev)