projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26c34c2
)
mfd: Don't hard code the reset value for WM8994 devices
author
Mark Brown
<
[email protected]
>
Tue, 25 Oct 2011 11:25:43 +0000
(13:25 +0200)
committer
Mark Brown
<
[email protected]
>
Mon, 12 Dec 2011 16:10:01 +0000
(
00:10
+0800)
Signed-off-by: Mark Brown <
[email protected]
>
Acked-by: Samuel Ortiz <
[email protected]
>
drivers/mfd/wm8994-core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/wm8994-core.c
b/drivers/mfd/wm8994-core.c
index c8956f2cd28064d137e23a6fa814a477e8fe95c2..016769475ffb559f38c0e286b7dca623b329822a 100644
(file)
--- 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;