mirror of
https://github.com/torvalds/linux.git
synced 2024-12-06 11:01:43 +00:00
mfd: Error out if initial arizona boot fails
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
31b3ffbdfb
commit
af65a361d5
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user