dect
/
linux-2.6
Archived
13
0
Fork 0

mfd: Don't hard code the reset value for WM8994 devices

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Mark Brown 2011-10-25 13:25:43 +02:00
parent 26c34c25e5
commit be79cf2fd2
1 changed files with 2 additions and 1 deletions

View 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;