aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi_imx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi_imx.c')
-rw-r--r--drivers/spi/spi_imx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c
index 0480d8bb19d3..014af69fc1bb 100644
--- a/drivers/spi/spi_imx.c
+++ b/drivers/spi/spi_imx.c
@@ -779,7 +779,8 @@ static irqreturn_t interrupt_transfer(struct driver_data *drv_data)
779 779
780 /* Read trailing bytes */ 780 /* Read trailing bytes */
781 limit = loops_per_jiffy << 1; 781 limit = loops_per_jiffy << 1;
782 while ((read(drv_data) == 0) && limit--); 782 while ((read(drv_data) == 0) && --limit)
783 cpu_relax();
783 784
784 if (limit == 0) 785 if (limit == 0)
785 dev_err(&drv_data->pdev->dev, 786 dev_err(&drv_data->pdev->dev,