Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336030
b: refs/heads/master
c: 46b9d13
h: refs/heads/master
v: v3
  • Loading branch information
Charles Keepax authored and Samuel Ortiz committed Nov 20, 2012
1 parent 7093562 commit 2270618
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 3ebef34d5cf658752d000001d2a6a5defe8cf3a9
refs/heads/master: 46b9d13aaec19dfbd5882a999e8ed85fc97a751e
8 changes: 8 additions & 0 deletions trunk/drivers/mfd/arizona-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,19 @@ int __devinit arizona_dev_init(struct arizona *arizona)

/* If we have a /RESET GPIO we'll already be reset */
if (!arizona->pdata.reset) {
regcache_mark_dirty(arizona->regmap);

ret = regmap_write(arizona->regmap, ARIZONA_SOFTWARE_RESET, 0);
if (ret != 0) {
dev_err(dev, "Failed to reset device: %d\n", ret);
goto err_reset;
}

ret = regcache_sync(arizona->regmap);
if (ret != 0) {
dev_err(dev, "Failed to sync device: %d\n", ret);
goto err_reset;
}
}

ret = arizona_wait_for_boot(arizona);
Expand Down

0 comments on commit 2270618

Please sign in to comment.