[alsa-devel] [PATCH 14/17] ASoC: rt5645: fix error handling for gpio detection
Pierre-Louis Bossart
pierre-louis.bossart at linux.intel.com
Thu Jan 26 21:09:42 CET 2017
Optional gpio handling should not cause an error status
and prevent probing.
Remove error return and move error message to dev_info
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
---
sound/soc/codecs/rt5645.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 65ac841..f216f9f 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -3660,8 +3660,7 @@ static int rt5645_i2c_probe(struct i2c_client *i2c,
GPIOD_IN);
if (IS_ERR(rt5645->gpiod_hp_det)) {
- dev_err(&i2c->dev, "failed to initialize gpiod\n");
- return PTR_ERR(rt5645->gpiod_hp_det);
+ dev_info(&i2c->dev, "failed to initialize gpiod\n");
}
for (i = 0; i < ARRAY_SIZE(rt5645->supplies); i++)
--
2.7.4
More information about the Alsa-devel
mailing list