提交 af65a361 编写于 作者: M Mark Brown 提交者: Samuel Ortiz

mfd: Error out if initial arizona boot fails

Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册