]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/dma/coh901318.c
DMA: PL330: Add missing static storage class specifier
[mirror_ubuntu-bionic-kernel.git] / drivers / dma / coh901318.c
index 750925f9638bab656b39ccff65bed7dbdbee405c..e67b4e06a918350137e8119e940618318f2c7867 100644 (file)
@@ -1033,7 +1033,7 @@ coh901318_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
 
        if (!sgl)
                goto out;
-       if (sgl->length == 0)
+       if (sg_dma_len(sgl) == 0)
                goto out;
 
        spin_lock_irqsave(&cohc->lock, flg);