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:
31b3ffb
)
mfd: Error out if initial arizona boot fails
author
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Mon, 9 Jul 2012 10:56:43 +0000
(11:56 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 9 Jul 2012 13:16:29 +0000
(15:16 +0200)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/arizona-core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/arizona-core.c
b/drivers/mfd/arizona-core.c
index 5cbacf6e2bf79531417e4a8aae0cb931cc6048cd..ffa011f4677e12bf6ce6c17a4705b0090c6f98d2 100644
(file)
--- a/
drivers/mfd/arizona-core.c
+++ b/
drivers/mfd/arizona-core.c
@@
-398,7
+398,11
@@
int __devinit arizona_dev_init(struct arizona *arizona)
}
}
- arizona_wait_for_boot(arizona);
+ ret = arizona_wait_for_boot(arizona);
+ if (ret != 0) {
+ dev_err(arizona->dev, "Device failed initial boot: %d\n", ret);
+ goto err_reset;
+ }
for (i = 0; i < ARRAY_SIZE(arizona->pdata.gpio_defaults); i++) {
if (!arizona->pdata.gpio_defaults[i])