diff options
-rw-r--r-- | sound/soc/codecs/wm8962.c | 9 | ||||
-rw-r--r-- | sound/soc/codecs/wm8962.h | 6 |
2 files changed, 9 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 720a14e0687d..0100e28f40dc 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
@@ -3798,9 +3798,8 @@ static int wm8962_runtime_resume(struct device *dev) | |||
3798 | ret = regulator_bulk_enable(ARRAY_SIZE(wm8962->supplies), | 3798 | ret = regulator_bulk_enable(ARRAY_SIZE(wm8962->supplies), |
3799 | wm8962->supplies); | 3799 | wm8962->supplies); |
3800 | if (ret != 0) { | 3800 | if (ret != 0) { |
3801 | dev_err(dev, | 3801 | dev_err(dev, "Failed to enable supplies: %d\n", ret); |
3802 | "Failed to enable supplies: %d\n", ret); | 3802 | goto disable_clock; |
3803 | return ret; | ||
3804 | } | 3803 | } |
3805 | 3804 | ||
3806 | regcache_cache_only(wm8962->regmap, false); | 3805 | regcache_cache_only(wm8962->regmap, false); |
@@ -3838,6 +3837,10 @@ static int wm8962_runtime_resume(struct device *dev) | |||
3838 | msleep(5); | 3837 | msleep(5); |
3839 | 3838 | ||
3840 | return 0; | 3839 | return 0; |
3840 | |||
3841 | disable_clock: | ||
3842 | clk_disable_unprepare(wm8962->pdata.mclk); | ||
3843 | return ret; | ||
3841 | } | 3844 | } |
3842 | 3845 | ||
3843 | static int wm8962_runtime_suspend(struct device *dev) | 3846 | static int wm8962_runtime_suspend(struct device *dev) |
diff --git a/sound/soc/codecs/wm8962.h b/sound/soc/codecs/wm8962.h index 910aafd09d21..e63a318a3015 100644 --- a/sound/soc/codecs/wm8962.h +++ b/sound/soc/codecs/wm8962.h | |||
@@ -16,9 +16,9 @@ | |||
16 | #include <asm/types.h> | 16 | #include <asm/types.h> |
17 | #include <sound/soc.h> | 17 | #include <sound/soc.h> |
18 | 18 | ||
19 | #define WM8962_SYSCLK_MCLK 1 | 19 | #define WM8962_SYSCLK_MCLK 0 |
20 | #define WM8962_SYSCLK_FLL 2 | 20 | #define WM8962_SYSCLK_FLL 1 |
21 | #define WM8962_SYSCLK_PLL3 3 | 21 | #define WM8962_SYSCLK_PLL3 2 |
22 | 22 | ||
23 | #define WM8962_FLL 1 | 23 | #define WM8962_FLL 1 |
24 | 24 | ||