diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-04-19 20:26:31 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-04-26 03:48:21 -0400 |
commit | f1c3e67eb73a4a1db31e235883156ac098e29ff6 (patch) | |
tree | 07326ba2bad347e8fa38b73742cc2e2b099dc81c /drivers/char | |
parent | 5ff64611333fd282793ff8997e02138aa2f6aab9 (diff) |
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>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/drm/ati_pcigart.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/char/drm/ati_pcigart.c b/drivers/char/drm/ati_pcigart.c index 141f4dfa0a11..b710426bab3e 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 | |||
167 | page_base += ATI_PCIGART_PAGE_SIZE; | 167 | page_base += ATI_PCIGART_PAGE_SIZE; |
168 | } | 168 | } |
169 | } | 169 | } |
170 | |||
171 | if (gart_info->gart_table_location == DRM_ATI_GART_MAIN) | ||
172 | dma_sync_single_for_device(&dev->pdev->dev, | ||
173 | bus_address, | ||
174 | max_pages * sizeof(u32), | ||
175 | PCI_DMA_TODEVICE); | ||
176 | |||
177 | ret = 1; | 170 | ret = 1; |
178 | 171 | ||
179 | #if defined(__i386__) || defined(__x86_64__) | 172 | #if defined(__i386__) || defined(__x86_64__) |