summaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drm_dma.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2006-03-19 18:56:12 +1100
committerDave Airlie <airlied@linux.ie>2006-03-19 18:56:12 +1100
commitddf19b973be5a96d77c8467f657fe5bd7d126e0f (patch)
treee7b003b3dad82014b364acde5681956011e67b58 /drivers/char/drm/drm_dma.c
parent60a6dc55b93b3321afa52f650a149fb7e87fa85a (diff)
downloadblackbird-op-linux-ddf19b973be5a96d77c8467f657fe5bd7d126e0f.tar.gz
blackbird-op-linux-ddf19b973be5a96d77c8467f657fe5bd7d126e0f.zip
drm: fixup PCI DMA support
This patch makes the PCI support use the correct Linux interfaces finally. Tested in DRM CVS on PCI MGA card. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_dma.c')
-rw-r--r--drivers/char/drm/drm_dma.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/drm/drm_dma.c b/drivers/char/drm/drm_dma.c
index 2afab95ca036..892db7096986 100644
--- a/drivers/char/drm/drm_dma.c
+++ b/drivers/char/drm/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,
OpenPOWER on IntegriCloud