aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-mv64xxx.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-06-19 17:53:52 -0400
committerWolfram Sang <wsa@the-dreams.de>2013-06-25 12:42:19 -0400
commit6faa3535599a6f9ef367e3fd5c5126207a356a53 (patch)
tree8efb31a11ca9849d7a821c68e13fcb127c1a3d30 /drivers/i2c/busses/i2c-mv64xxx.c
parentf39901c1befa556bc91902516a3e2e460000b4a8 (diff)
i2c: mv64xxx: Fix transfer error code
The driver returns -ENODEV as error code if it did not get an ACK from the device. Per Documentation/i2c/fault-codes, it should return -ENXIO. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-mv64xxx.c')
-rw-r--r--drivers/i2c/busses/i2c-mv64xxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c
index 7a0e39b7f928..ed854573b427 100644
--- a/drivers/i2c/busses/i2c-mv64xxx.c
+++ b/drivers/i2c/busses/i2c-mv64xxx.c
@@ -280,7 +280,7 @@ mv64xxx_i2c_fsm(struct mv64xxx_i2c_data *drv_data, u32 status)
280 /* Doesn't seem to be a device at other end */ 280 /* Doesn't seem to be a device at other end */
281 drv_data->action = MV64XXX_I2C_ACTION_SEND_STOP; 281 drv_data->action = MV64XXX_I2C_ACTION_SEND_STOP;
282 drv_data->state = MV64XXX_I2C_STATE_IDLE; 282 drv_data->state = MV64XXX_I2C_STATE_IDLE;
283 drv_data->rc = -ENODEV; 283 drv_data->rc = -ENXIO;
284 break; 284 break;
285 285
286 default: 286 default: