diff options
Diffstat (limited to 'drivers/dma/coh901318.c')
-rw-r--r-- | drivers/dma/coh901318.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/coh901318.c b/drivers/dma/coh901318.c index 750925f9638b..e67b4e06a918 100644 --- a/drivers/dma/coh901318.c +++ b/drivers/dma/coh901318.c | |||
@@ -1033,7 +1033,7 @@ coh901318_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, | |||
1033 | 1033 | ||
1034 | if (!sgl) | 1034 | if (!sgl) |
1035 | goto out; | 1035 | goto out; |
1036 | if (sgl->length == 0) | 1036 | if (sg_dma_len(sgl) == 0) |
1037 | goto out; | 1037 | goto out; |
1038 | 1038 | ||
1039 | spin_lock_irqsave(&cohc->lock, flg); | 1039 | spin_lock_irqsave(&cohc->lock, flg); |