Commit 921071a8 authored by Wolfram Sang's avatar Wolfram Sang Committed by Lee Jones

mfd: da9063: Propagate errno when I2C mode fails

Don't hardocde EIO but use the obtained value.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarMark Jonas <mark.jonas@de.bosch.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 6f1b6607
...@@ -448,7 +448,7 @@ static int da9063_i2c_probe(struct i2c_client *i2c, ...@@ -448,7 +448,7 @@ static int da9063_i2c_probe(struct i2c_client *i2c,
DA9063_TWOWIRE_TO); DA9063_TWOWIRE_TO);
if (ret < 0) { if (ret < 0) {
dev_err(da9063->dev, "Failed to set Two-Wire Bus Mode.\n"); dev_err(da9063->dev, "Failed to set Two-Wire Bus Mode.\n");
return -EIO; return ret;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment