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>
This commit is contained in:
Shubhrajyoti Datta 2015-06-17 20:48:15 +05:30 committed by Wolfram Sang
parent e6c9a037bc
commit b33aa25278

View file

@ -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);
}