From 0a211db23c0d7e22946aa25f22e9aeab6783b617 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 19 Feb 2006 12:08:14 +0000 Subject: experimental PCI DMA fixes use proper Linux interfaces --- linux-core/drm_dma.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'linux-core/drm_dma.c') diff --git a/linux-core/drm_dma.c b/linux-core/drm_dma.c index e7d9e826..a7eee1a4 100644 --- a/linux-core/drm_dma.c +++ b/linux-core/drm_dma.c @@ -85,9 +85,7 @@ void drm_dma_takedown(drm_device_t * dev) dma->bufs[i].seg_count); for (j = 0; j < dma->bufs[i].seg_count; j++) { if (dma->bufs[i].seglist[j]) { - drm_free_pages(dma->bufs[i].seglist[j], - dma->bufs[i].page_order, - DRM_MEM_DMA); + drm_pci_free(dev, dma->bufs[i].seglist[j]); } } drm_free(dma->bufs[i].seglist, -- cgit v1.2.3