summaryrefslogtreecommitdiff
path: root/asoc/codecs/wcd9xxx-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'asoc/codecs/wcd9xxx-core.c')
-rw-r--r--asoc/codecs/wcd9xxx-core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/asoc/codecs/wcd9xxx-core.c b/asoc/codecs/wcd9xxx-core.c
index e417d174..ec0acb90 100644
--- a/asoc/codecs/wcd9xxx-core.c
+++ b/asoc/codecs/wcd9xxx-core.c
@@ -1242,9 +1242,12 @@ static int wcd9xxx_i2c_probe(struct i2c_client *client,
ret = wcd9xxx_i2c_read(wcd9xxx, WCD9XXX_A_CHIP_STATUS, 1,
&val, 0);
- if (ret < 0)
+ if (ret < 0) {
pr_err("%s: failed to read the wcd9xxx status (%d)\n",
__func__, ret);
+ ret = 0;
+ }
+
if (val != wcd9xxx->codec_type->i2c_chip_status)
pr_err("%s: unknown chip status 0x%x\n", __func__, val);