From: Marek Vasut Date: Sun, 14 Oct 2012 02:32:55 +0000 (+0200) Subject: spi: mxs: Assign message status after transfer finished X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d856f1eb56ae3d935fb502441aa37b650aeba683;p=linux-beck.git spi: mxs: Assign message status after transfer finished In the current code implementing the MXS SPI driver, every transferred message had assigned status = 0, which is not correct. Properly assign status returned from the I/O functions. Signed-off-by: Marek Vasut Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index edf1360ab09e..5a63bcd7a23d 100644 --- a/drivers/spi/spi-mxs.c +++ b/drivers/spi/spi-mxs.c @@ -480,7 +480,7 @@ static int mxs_spi_transfer_one(struct spi_master *master, first = last = 0; } - m->status = 0; + m->status = status; spi_finalize_current_message(master); return status;