summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@codeaurora.org>2017-02-08 10:44:14 -0700
committerKarthikeyan Ramasubramanian <kramasub@codeaurora.org>2017-02-09 17:00:23 -0700
commit45c883260a253ef93f65bc755d5a17467b3da2a3 (patch)
treeae84a13ffe978a1d652ae8469ee9316a6295650a
parent2aa89ab3ff59a788321bc6af782d639cfc8dab1f (diff)
spi: spi_qsd: Use the right device for dma_unmap_single operation
The unmap operation of a dma bounce buffer is performed using an incorrect device compared to the map operation. This leads to a leaked bounce buffer dma map. Fix the device usage during the unmap operation. CRs-Fixed: 1104864 Change-Id: I7da2484ce1f070a4545b9110e3602b4f39d7afdc Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
-rw-r--r--drivers/spi/spi_qsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_qsd.c b/drivers/spi/spi_qsd.c
index b81348ceb469..4e1e12969b8d 100644
--- a/drivers/spi/spi_qsd.c
+++ b/drivers/spi/spi_qsd.c
@@ -1118,7 +1118,7 @@ static void msm_spi_bam_unmap_buffers(struct msm_spi *dd)
void *tx_buf, *rx_buf;
u32 tx_len, rx_len;
- dev = &dd->spi->dev;
+ dev = dd->dev;
xfr = dd->cur_transfer;
tx_buf = (void *)xfr->tx_buf;