Christoph Hellwig <h...@lst.de> writes:

> diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c
> index dbfc7056d7df..d442d23e182b 100644
> --- a/arch/powerpc/kernel/dma.c
> +++ b/arch/powerpc/kernel/dma.c
> @@ -247,6 +252,8 @@ static inline void dma_nommu_unmap_page(struct device 
> *dev,
>                                        enum dma_data_direction direction,
>                                        unsigned long attrs)
>  {
> +     if (!(attrs & DMA_ATTR_SKIP_CPU_SYNC))
> +             __dma_sync(bus_to_virt(dma_address), size, dir);

I did s/dir/direction here.

cheers

Reply via email to