Commit af65a361 authored by Mark Brown's avatar Mark Brown Committed by Samuel Ortiz

mfd: Error out if initial arizona boot fails

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 31b3ffbd
......@@ -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])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment