i2c: pmcmsp: fix error return from master_xfer
[linux-2.6-microblaze.git] / drivers / i2c / busses / i2c-pmcmsp.c
index ec27e27..dae8ac6 100644 (file)
@@ -564,7 +564,7 @@ static int pmcmsptwi_master_xfer(struct i2c_adapter *adap,
                 * TODO: We could potentially loop and retry in the case
                 * of MSP_TWI_XFER_TIMEOUT.
                 */
-               return -1;
+               return -EIO;
        }
 
        return num;