summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-04-20 10:26:31 +1000
committerDave Airlie <airlied@linux.ie>2008-04-26 17:48:21 +1000
commitf1c3e67eb73a4a1db31e235883156ac098e29ff6 (patch)
tree07326ba2bad347e8fa38b73742cc2e2b099dc81c
parent5ff64611333fd282793ff8997e02138aa2f6aab9 (diff)
downloadop-kernel-dev-f1c3e67eb73a4a1db31e235883156ac098e29ff6.zip
op-kernel-dev-f1c3e67eb73a4a1db31e235883156ac098e29ff6.tar.gz
drm: Remove unneeded dma sync in ATI pcigart alloc
Now that the ATI pcigart code uses dma_alloc_coherent, we don't need the dma_sync_single_for_device() that we used to have here. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/char/drm/ati_pcigart.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/char/drm/ati_pcigart.c b/drivers/char/drm/ati_pcigart.c
index 141f4df..b710426 100644
--- a/drivers/char/drm/ati_pcigart.c
+++ b/drivers/char/drm/ati_pcigart.c
@@ -167,13 +167,6 @@ int drm_ati_pcigart_init(struct drm_device *dev, struct drm_ati_pcigart_info *ga
page_base += ATI_PCIGART_PAGE_SIZE;
}
}
-
- if (gart_info->gart_table_location == DRM_ATI_GART_MAIN)
- dma_sync_single_for_device(&dev->pdev->dev,
- bus_address,
- max_pages * sizeof(u32),
- PCI_DMA_TODEVICE);
-
ret = 1;
#if defined(__i386__) || defined(__x86_64__)
OpenPOWER on IntegriCloud