Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284090
b: refs/heads/master
c: 3befc92
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Jan 9, 2012
1 parent 3acd4fa commit 578cfa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b2ed1b0bc69e53d68aa01b79ca0944311b553fc1
refs/heads/master: 3befc925cb658227fb207f20e6719987f7ee3190
2 changes: 2 additions & 0 deletions trunk/drivers/mfd/wm8994-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ static int wm8994_suspend(struct device *dev)
wm8994_reg_write(wm8994, WM8994_SOFTWARE_RESET,
wm8994_reg_read(wm8994, WM8994_SOFTWARE_RESET));

regcache_cache_only(wm8994->regmap, true);
regcache_mark_dirty(wm8994->regmap);

wm8994->suspended = true;
Expand Down Expand Up @@ -298,6 +299,7 @@ static int wm8994_resume(struct device *dev)
return ret;
}

regcache_cache_only(wm8994->regmap, false);
ret = regcache_sync(wm8994->regmap);
if (ret != 0) {
dev_err(dev, "Failed to restore register map: %d\n", ret);
Expand Down

0 comments on commit 578cfa2

Please sign in to comment.