diff options
author | Shubhrajyoti Datta <shubhraj@xilinx.com> | 2015-06-17 15:18:15 (GMT) |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-08-10 06:37:32 (GMT) |
commit | b33aa252785eb6de2f5325a3338fa917a9b4bc66 (patch) | |
tree | 4615bfe5d561d08ecb70555299a5442bde29e6e5 /drivers/i2c | |
parent | e6c9a037bc8afdce055a2a23bb61903b3844dfda (diff) | |
download | linux-b33aa252785eb6de2f5325a3338fa917a9b4bc66.tar.xz |
i2c: xiic: Remove busy loop while waiting for bus busy
Remove the busy loop while waiting for bus busy.
Instead let the processor sleep.
Signed-off-by: Shubhrajyoti Datta <shubhraj@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-xiic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index 5d133d4..41da902 100644 --- a/drivers/i2c/busses/i2c-xiic.c +++ b/drivers/i2c/busses/i2c-xiic.c @@ -524,7 +524,7 @@ static int xiic_busy(struct xiic_i2c *i2c) */ err = xiic_bus_busy(i2c); while (err && tries--) { - mdelay(1); + msleep(1); err = xiic_bus_busy(i2c); } |