]> err.no Git - linux-2.6/commitdiff
drm: Remove unneeded dma sync in ATI pcigart alloc
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 20 Apr 2008 00:26:31 +0000 (10:26 +1000)
committerDave Airlie <airlied@linux.ie>
Sat, 26 Apr 2008 07:48:21 +0000 (17:48 +1000)
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>
drivers/char/drm/ati_pcigart.c

index 141f4dfa0a117cdd6639abab27424bc529fae053..b710426bab3ee3f7c726e0fbebad56acdabc32fc 100644 (file)
@@ -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__)