diff options
Diffstat (limited to 'drivers/dma/imx-sdma.c')
-rw-r--r-- | drivers/dma/imx-sdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 5a457777f5c0..cd0619a897ff 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c | |||
@@ -941,7 +941,7 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg( | |||
941 | 941 | ||
942 | bd->buffer_addr = sg->dma_address; | 942 | bd->buffer_addr = sg->dma_address; |
943 | 943 | ||
944 | count = sg->length; | 944 | count = sg_dma_len(sg); |
945 | 945 | ||
946 | if (count > 0xffff) { | 946 | if (count > 0xffff) { |
947 | dev_err(sdma->dev, "SDMA channel %d: maximum bytes for sg entry exceeded: %d > %d\n", | 947 | dev_err(sdma->dev, "SDMA channel %d: maximum bytes for sg entry exceeded: %d > %d\n", |