diff options
author | Dave Airlie <airlied@redhat.com> | 2008-06-03 12:40:54 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-06-03 12:44:06 +1000 |
commit | f1e12d40af6ce9b6159c28529bcbdc877c565c82 (patch) | |
tree | cf59f6d8991fcdd4030d5c094d11c98ea1aa3965 /linux-core | |
parent | 416754f1cc5a55b1c6b2d2fa2f501b18462d62e6 (diff) |
drm/ati_pcigart: use proper page mapping function
This should be pci_map_page not pci_map_single
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/ati_pcigart.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/linux-core/ati_pcigart.c b/linux-core/ati_pcigart.c index 09251ac3..c2aafd22 100644 --- a/linux-core/ati_pcigart.c +++ b/linux-core/ati_pcigart.c @@ -80,7 +80,7 @@ int drm_ati_pcigart_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info for (i = 0; i < pages; i++) { if (!entry->busaddr[i]) break; - pci_unmap_single(dev->pdev, entry->busaddr[i], + pci_unmap_page(dev->pdev, entry->busaddr[i], PAGE_SIZE, PCI_DMA_TODEVICE); } @@ -143,10 +143,8 @@ int drm_ati_pcigart_init(struct drm_device *dev, struct drm_ati_pcigart_info *ga for (i = 0; i < pages; i++) { /* we need to support large memory configurations */ - entry->busaddr[i] = pci_map_single(dev->pdev, - page_address(entry-> - pagelist[i]), - PAGE_SIZE, PCI_DMA_TODEVICE); + entry->busaddr[i] = pci_map_page(dev->pdev, entry->pagelist[i], + 0, PAGE_SIZE, PCI_DMA_TODEVICE); if (entry->busaddr[i] == 0) { DRM_ERROR("unable to map PCIGART pages!\n"); drm_ati_pcigart_cleanup(dev, gart_info); |