Marek Szyprowski wrote:
> +++ b/drivers/base/dma-mapping.c
> ...
> +int dma_common_mmap(struct device *dev, struct vm_area_struct *vma,
> +                 void *cpu_addr, dma_addr_t dma_addr, size_t size)
> +{
> +     int ret = -ENXIO;
> +     ...
> +     if (dma_mmap_from_coherent(dev, vma, cpu_addr, size, &ret))
> +             return ret;

This will return -ENXIO if dma_mmap_from_coherent() succeeds.


Regards,
Clemens
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to