dmaengine: make dma_submit_error() return an error code
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 10 Aug 2013 07:46:50 +0000 (10:46 +0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:44:46 +0000 (11:44 +0900)
commita6efa9374002fc68f8e68cad90535f9757dc809b
tree11abe1150c51b6cec4f2e0692911cc78fdbe7610
parentd5640eace2e4128790ba1376aeea47fb4721c768
dmaengine: make dma_submit_error() return an error code

The problem here is that the dma_xfer() functions in
drivers/ata/pata_arasan_cf.c and drivers/mtd/nand/fsmc_nand.c expect
dma_submit_error() to return an error code so they return 1 when they
intended to return a negative.

So far as I can tell, none of the ->tx_submit() functions ever do
return error codes so this patch should have no effect in the current
code.

I also changed it from a define to an inline.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dan Williams <djbw@fb.com>
include/linux/dmaengine.h