projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
spi: error status should be negative
[GitHub/LineageOS/android_kernel_samsung_universal7580.git]
/
drivers
/
spi
/
spi_stmp.c
diff --git
a/drivers/spi/spi_stmp.c
b/drivers/spi/spi_stmp.c
index d871dc23909ca856bb11b467ae09cb5f60fc7f14..2552bb36400564f58a66285647a7faa951090be8 100644
(file)
--- a/
drivers/spi/spi_stmp.c
+++ b/
drivers/spi/spi_stmp.c
@@
-242,7
+242,7
@@
static int stmp_spi_txrx_dma(struct stmp_spi *ss, int cs,
wait_for_completion(&ss->done);
if (!busy_wait(readl(ss->regs + HW_SSP_CTRL0) & BM_SSP_CTRL0_RUN))
- status = ETIMEDOUT;
+ status =
-
ETIMEDOUT;
if (!dma_buf)
dma_unmap_single(ss->master_dev, spi_buf_dma, len, dir);