diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2021-05-25 15:42:43 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-06-02 10:51:17 +0100 |
commit | 921071a83dc78f5e68a0fa48fc2cfd3a0bb98e1b (patch) | |
tree | 19a76cc32d2ae5c2e3e410a61a9bee13601cac62 /drivers/mfd | |
parent | 6f1b660731d841aa429a836c4ba04af551628050 (diff) | |
download | linux-921071a83dc78f5e68a0fa48fc2cfd3a0bb98e1b.tar.gz linux-921071a83dc78f5e68a0fa48fc2cfd3a0bb98e1b.tar.bz2 linux-921071a83dc78f5e68a0fa48fc2cfd3a0bb98e1b.zip |
mfd: da9063: Propagate errno when I2C mode fails
Don't hardocde EIO but use the obtained value.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Mark Jonas <mark.jonas@de.bosch.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/da9063-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/da9063-i2c.c b/drivers/mfd/da9063-i2c.c index 783a14af18e2..4b7f707b7952 100644 --- a/drivers/mfd/da9063-i2c.c +++ b/drivers/mfd/da9063-i2c.c @@ -448,7 +448,7 @@ static int da9063_i2c_probe(struct i2c_client *i2c, DA9063_TWOWIRE_TO); if (ret < 0) { dev_err(da9063->dev, "Failed to set Two-Wire Bus Mode.\n"); - return -EIO; + return ret; } } |