mfd: Don't hard code the reset value for WM8994 devices
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 25 Oct 2011 11:25:43 +0000 (13:25 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 12 Dec 2011 16:10:01 +0000 (00:10 +0800)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8994-core.c

index c8956f2cd28064d137e23a6fa814a477e8fe95c2..016769475ffb559f38c0e286b7dca623b329822a 100644 (file)
@@ -276,7 +276,8 @@ static int wm8994_suspend(struct device *dev)
        /* Explicitly put the device into reset in case regulators
         * don't get disabled in order to ensure consistent restart.
         */
-       wm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET, 0x8994);
+       wm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET,
+                        wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET));
 
        wm8994->suspended = true;