diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-10-03 13:57:14 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-11-10 09:34:59 +0100 |
commit | 194fa7ff67f102023d198dfe658614a31dcad8d4 (patch) | |
tree | 7513b67c67c9a1e3a4adf9e0bc9dbed6d280f801 /drivers/i2c/busses | |
parent | 2fd36c55264926e268deb50f6de5f43fa5e490f7 (diff) | |
download | talos-obmc-linux-194fa7ff67f102023d198dfe658614a31dcad8d4.tar.gz talos-obmc-linux-194fa7ff67f102023d198dfe658614a31dcad8d4.zip |
i2c: exynos5: use proper errno for timeout
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r-- | drivers/i2c/busses/i2c-exynos5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index 81e6263cd7da..271533d564ec 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -457,7 +457,7 @@ static irqreturn_t exynos5_i2c_irq(int irqno, void *dev_id) goto stop; } else if (int_status & HSI2C_INT_TIMEOUT) { dev_dbg(i2c->dev, "Accessing device timed out\n"); - i2c->state = -EAGAIN; + i2c->state = -ETIMEDOUT; goto stop; } } else if (int_status & HSI2C_INT_I2C) { @@ -476,7 +476,7 @@ static irqreturn_t exynos5_i2c_irq(int irqno, void *dev_id) goto stop; } else if (trans_status & HSI2C_TIMEOUT_AUTO) { dev_dbg(i2c->dev, "Accessing device timed out\n"); - i2c->state = -EAGAIN; + i2c->state = -ETIMEDOUT; goto stop; } else if (trans_status & HSI2C_TRANS_DONE) { i2c->trans_done = 1; |