diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-25 13:25:43 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-13 00:10:01 +0800 |
commit | be79cf2fd258bf4566d8abf28b8c3ac3b985b1b4 (patch) | |
tree | 1599e5c4e6b0febc15674ddfb5dacfce41af4755 | |
parent | 26c34c25e54b4a352596d88c6e44a239dab8e1c5 (diff) | |
download | op-kernel-dev-be79cf2fd258bf4566d8abf28b8c3ac3b985b1b4.zip op-kernel-dev-be79cf2fd258bf4566d8abf28b8c3ac3b985b1b4.tar.gz |
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>
-rw-r--r-- | drivers/mfd/wm8994-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index c8956f2c..0167694 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -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; |