exynos: spi: Convert the timeout to debug()
[oweals/u-boot.git] / drivers / spi / exynos_spi.c
index 67f6b2d7cdaa871b97f170d78476c658a622a94e..6d77c319e7e3c43edec455576dddb57f9d009cb0 100644 (file)
@@ -190,9 +190,9 @@ static int spi_rx_tx(struct exynos_spi_priv *priv, int todo,
                        spi_request_bytes(regs, toread, step);
                }
                if (priv->skip_preamble && get_timer(start) > 100) {
-                       printf("SPI timeout: in_bytes=%d, out_bytes=%d, ",
-                              in_bytes, out_bytes);
-                       return -1;
+                       debug("SPI timeout: in_bytes=%d, out_bytes=%d, ",
+                             in_bytes, out_bytes);
+                       return -ETIMEDOUT;
                }
        }