aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_bufs.c
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /drivers/gpu/drm/drm_bufs.c
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/gpu/drm/drm_bufs.c')
-rw-r--r--drivers/gpu/drm/drm_bufs.c5
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. */