summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-pxa2xx.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-12 15:13:27 +0100
committerMark Brown <broonie@linaro.org>2014-02-23 04:47:07 +0100
commit23e2c2aa45a213ea25636ac5add66c2507e7361b (patch)
tree6f246f62a4652b71c28151d158a96dbe4925b8b3 /drivers/spi/spi-pxa2xx.c
parentLinus 3.14-rc1 (diff)
downloadlinux-23e2c2aa45a213ea25636ac5add66c2507e7361b.tar.xz
linux-23e2c2aa45a213ea25636ac5add66c2507e7361b.zip
spi: Use list_last_entry at appropriate places
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
-rw-r--r--drivers/spi/spi-pxa2xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index c702fc536a77..41185d0557fa 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -362,8 +362,7 @@ static void giveback(struct driver_data *drv_data)
drv_data->cur_msg = NULL;
drv_data->cur_transfer = NULL;
- last_transfer = list_entry(msg->transfers.prev,
- struct spi_transfer,
+ last_transfer = list_last_entry(&msg->transfers, struct spi_transfer,
transfer_list);
/* Delay if requested before any change in chip select */