diff options
author | Dave Airlie <airlied@linux.ie> | 2006-03-19 18:56:12 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-03-19 18:56:12 +1100 |
commit | ddf19b973be5a96d77c8467f657fe5bd7d126e0f (patch) | |
tree | e7b003b3dad82014b364acde5681956011e67b58 /drivers/char/drm/drm_dma.c | |
parent | 60a6dc55b93b3321afa52f650a149fb7e87fa85a (diff) | |
download | blackbird-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.c | 4 |
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, |