2012-05-04 02:32:10

by Chao Xie

[permalink] [raw]
Subject: [PATCH 6/8] mfd: fix gpadc initialization

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

Signed-off-by: Chao Xie <[email protected]>
---
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