From: Mark Brown Date: Thu, 5 Jul 2012 19:35:30 +0000 (+0100) Subject: mfd: Treat arizona register read errors as non-fatal during resume X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=cfe775ce62d83168125299714739aebc1018211e;p=openwrt%2Fstaging%2Fblogic.git mfd: Treat arizona register read errors as non-fatal during resume We're testing for a specific value and while SPI does not detect I/O errors I2C can. Signed-off-by: Mark Brown Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c index e1308b5214ba..03aef6750a9d 100644 --- a/drivers/mfd/arizona-core.c +++ b/drivers/mfd/arizona-core.c @@ -197,7 +197,7 @@ static int arizona_wait_for_boot(struct arizona *arizona) if (ret != 0) { dev_err(arizona->dev, "Failed to read boot state: %d\n", ret); - return ret; + continue; } if (reg & ARIZONA_BOOT_DONE_STS)