mfd: arizona: Error out if initial boot fails
Subsystems (2)
PATCH 1/1 mfd: arizona: Error out if initial boot fails
Signed-off-by Mark Brown <[email protected]>
--- drivers/mfd/arizona-core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/mfd/arizona-core.c +5 -1
@@ -418,7 +418,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])
Signature · 1 line
1.7.10
Samuel Ortiz
AppliedHi Mark,
Quoted 4 lines · Mark Brown
Signed-off-by Mark Brown <[email protected]>--- drivers/mfd/arizona-core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Applied, thanks.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/