summaryrefslogtreecommitdiff
path: root/linux-core/drm_dma.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-02-19 12:08:14 +0000
committerDave Airlie <airlied@linux.ie>2006-02-19 12:08:14 +0000
commit0a211db23c0d7e22946aa25f22e9aeab6783b617 (patch)
tree2b2baa5086884907b3860121e09cf858aa400fa1 /linux-core/drm_dma.c
parent4c1c05ad96bd174d82ab94da7a0645bc448442f6 (diff)
experimental PCI DMA fixes use proper Linux interfaces
Diffstat (limited to 'linux-core/drm_dma.c')
-rw-r--r--linux-core/drm_dma.c4
1 files changed, 1 insertions, 3 deletions
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,