summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/wm8994-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-25 13:25:43 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-13 00:10:01 +0800
commitbe79cf2fd258bf4566d8abf28b8c3ac3b985b1b4 (patch)
tree1599e5c4e6b0febc15674ddfb5dacfce41af4755 /drivers/mfd/wm8994-core.c
parent26c34c25e54b4a352596d88c6e44a239dab8e1c5 (diff)
downloadtalos-obmc-linux-be79cf2fd258bf4566d8abf28b8c3ac3b985b1b4.tar.gz
talos-obmc-linux-be79cf2fd258bf4566d8abf28b8c3ac3b985b1b4.zip
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>
Diffstat (limited to 'drivers/mfd/wm8994-core.c')
-rw-r--r--drivers/mfd/wm8994-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c
index c8956f2cd280..016769475ffb 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;
OpenPOWER on IntegriCloud