video: pxafb: Fix the function used to balance a 'dma_alloc_coherent()' call
[linux-2.6-microblaze.git] / drivers / video / fbdev / pxafb.c
index 00b96a7..6f972be 100644 (file)
@@ -2417,8 +2417,8 @@ static int pxafb_remove(struct platform_device *dev)
 
        free_pages_exact(fbi->video_mem, fbi->video_mem_size);
 
-       dma_free_wc(&dev->dev, fbi->dma_buff_size, fbi->dma_buff,
-                   fbi->dma_buff_phys);
+       dma_free_coherent(&dev->dev, fbi->dma_buff_size, fbi->dma_buff,
+                         fbi->dma_buff_phys);
 
        return 0;
 }