mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
spi: error status should be negative
Return a negative error value instead of a positive Signed-off-by: Roel Kluin <[email protected]> Cc: David Brownell <[email protected]> Cc: dmitry pervushin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
23f268fa2d
commit
b6b24c73d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue