]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: wm8996: Fix /RESET bounce ordering
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 29 Feb 2012 17:45:12 +0000 (17:45 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 29 Feb 2012 23:35:17 +0000 (23:35 +0000)
We want to leave the device out of rather than in reset.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8996.c

index fb5c07a9ec9cdc8c88ae9053945aa83cf72134da..1226f92bbb03783f2c4da09ccd371b505a723266 100644 (file)
@@ -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,