From: Mark Brown Date: Wed, 29 Feb 2012 17:45:12 +0000 (+0000) Subject: ASoC: wm8996: Fix /RESET bounce ordering X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1dd4c8e42aa08f21de3cdb4f7aa0841fbd7e3f58;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ASoC: wm8996: Fix /RESET bounce ordering We want to leave the device out of rather than in reset. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c index fb5c07a9ec9c..1226f92bbb03 100644 --- a/sound/soc/codecs/wm8996.c +++ b/sound/soc/codecs/wm8996.c @@ -1719,8 +1719,8 @@ static bool wm8996_volatile_register(struct device *dev, unsigned int reg) static int wm8996_reset(struct wm8996_priv *wm8996) { if (wm8996->pdata.ldo_ena > 0) { - gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 1); gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 0); + gpio_set_value_cansleep(wm8996->pdata.ldo_ena, 1); return 0; } else { return regmap_write(wm8996->regmap, WM8996_SOFTWARE_RESET,