summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-mxs.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-10-14 04:32:55 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-10-17 16:10:35 +0900
commitd856f1eb56ae3d935fb502441aa37b650aeba683 (patch)
tree07175e08a3334cb34614d778adf9ee2b8d09243e /drivers/spi/spi-mxs.c
parentddffeb8c4d0331609ef2581d84de4d763607bd37 (diff)
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 <marex@denx.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-mxs.c')
-rw-r--r--drivers/spi/spi-mxs.c2
1 files changed, 1 insertions, 1 deletions
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;