[PATCH V2] mfd: fix gpadc initialization

From: Chao Xie
Date: Thu May 03 2012 - 22:33:11 EST


gpadc initialization failure is acceptable. It should not make
88pm860x initialization abort.

Signed-off-by: Chao Xie <chao.xie@xxxxxxxxxxx>
---
drivers/mfd/88pm860x-core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/88pm860x-core.c b/drivers/mfd/88pm860x-core.c
index 87bd5ba..bfd8323 100644
--- a/drivers/mfd/88pm860x-core.c
+++ b/drivers/mfd/88pm860x-core.c
@@ -846,7 +846,7 @@ static void __devinit device_8607_init(struct pm860x_chip *chip,

ret = device_gpadc_init(chip, pdata);
if (ret < 0)
- goto out;
+ dev_info(chip->dev, "Failed to init gpadc\n");

ret = device_irq_init(chip, pdata);
if (ret < 0)
--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/