diff options
Diffstat (limited to 'drivers/gpu/drm/drm_bufs.c')
-rw-r--r-- | drivers/gpu/drm/drm_bufs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_bufs.c b/drivers/gpu/drm/drm_bufs.c index 3d09e304f6f4..f7ba82ebf65a 100644 --- a/drivers/gpu/drm/drm_bufs.c +++ b/drivers/gpu/drm/drm_bufs.c | |||
@@ -34,6 +34,7 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #include <linux/vmalloc.h> | 36 | #include <linux/vmalloc.h> |
37 | #include <linux/slab.h> | ||
37 | #include <linux/log2.h> | 38 | #include <linux/log2.h> |
38 | #include <asm/shmparam.h> | 39 | #include <asm/shmparam.h> |
39 | #include "drmP.h" | 40 | #include "drmP.h" |
@@ -326,7 +327,7 @@ static int drm_addmap_core(struct drm_device * dev, resource_size_t offset, | |||
326 | * As we're limiting the address to 2^32-1 (or less), | 327 | * As we're limiting the address to 2^32-1 (or less), |
327 | * casting it down to 32 bits is no problem, but we | 328 | * casting it down to 32 bits is no problem, but we |
328 | * need to point to a 64bit variable first. */ | 329 | * need to point to a 64bit variable first. */ |
329 | dmah = drm_pci_alloc(dev, map->size, map->size, 0xffffffffUL); | 330 | dmah = drm_pci_alloc(dev, map->size, map->size); |
330 | if (!dmah) { | 331 | if (!dmah) { |
331 | kfree(map); | 332 | kfree(map); |
332 | return -ENOMEM; | 333 | return -ENOMEM; |
@@ -885,7 +886,7 @@ int drm_addbufs_pci(struct drm_device * dev, struct drm_buf_desc * request) | |||
885 | 886 | ||
886 | while (entry->buf_count < count) { | 887 | while (entry->buf_count < count) { |
887 | 888 | ||
888 | dmah = drm_pci_alloc(dev, PAGE_SIZE << page_order, 0x1000, 0xfffffffful); | 889 | dmah = drm_pci_alloc(dev, PAGE_SIZE << page_order, 0x1000); |
889 | 890 | ||
890 | if (!dmah) { | 891 | if (!dmah) { |
891 | /* Set count correctly so we free the proper amount. */ | 892 | /* Set count correctly so we free the proper amount. */ |