summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-ath79.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2014-07-10 15:29:32 +0200
committerMark Brown <broonie@linaro.org>2014-07-11 13:57:10 +0100
commit89e4b66a2e34744615c79349aa936df1b4204faf (patch)
tree75a9b942c590ebe9d0d978f3de2e8c07a6bc2e91 /drivers/spi/spi-ath79.c
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
downloadblackbird-op-linux-89e4b66a2e34744615c79349aa936df1b4204faf.tar.gz
blackbird-op-linux-89e4b66a2e34744615c79349aa936df1b4204faf.zip
spi: core: Fix check for dma_map_sg() failures
According to Documentation/DMA-API.txt, dma_map_sg() returns 0 on failure. As spi_map_buf() returns an error code, convert zero into -ENOMEM. Keep the existing check for negative numbers just in case. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-ath79.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud