drm: remove address mask param for drm_pci_alloc()
[deliverable/linux.git] / drivers / gpu / drm / drm_bufs.c
index 6246e3f3dad70af9767c0916f1938d4751ea7583..8417cc4c43f1104a5ae6bfe35e28936db9f5235a 100644 (file)
@@ -310,10 +310,10 @@ static int drm_addmap_core(struct drm_device * dev, resource_size_t offset,
                          (unsigned long long)map->offset, map->size);
 
                break;
+       }
        case _DRM_GEM:
-               DRM_ERROR("tried to rmmap GEM object\n");
+               DRM_ERROR("tried to addmap GEM object\n");
                break;
-       }
        case _DRM_SCATTER_GATHER:
                if (!dev->sg) {
                        kfree(map);
@@ -326,7 +326,7 @@ static int drm_addmap_core(struct drm_device * dev, resource_size_t offset,
                 * As we're limiting the address to 2^32-1 (or less),
                 * casting it down to 32 bits is no problem, but we
                 * need to point to a 64bit variable first. */
-               dmah = drm_pci_alloc(dev, map->size, map->size, 0xffffffffUL);
+               dmah = drm_pci_alloc(dev, map->size, map->size);
                if (!dmah) {
                        kfree(map);
                        return -ENOMEM;
@@ -885,7 +885,7 @@ int drm_addbufs_pci(struct drm_device * dev, struct drm_buf_desc * request)
 
        while (entry->buf_count < count) {
 
-               dmah = drm_pci_alloc(dev, PAGE_SIZE << page_order, 0x1000, 0xfffffffful);
+               dmah = drm_pci_alloc(dev, PAGE_SIZE << page_order, 0x1000);
 
                if (!dmah) {
                        /* Set count correctly so we free the proper amount. */
This page took 0.054651 seconds and 5 git commands to generate.