summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-08-23 08:27:47 +1000
committerDave Airlie <airlied@redhat.com>2010-08-23 08:27:47 +1000
commit4dfe947e74a1de3eb638cc36d51bf56d6609057b (patch)
treee8ae53c554ecabb2e7536f285528ea98d78b5982
parentd033af87e2a215a57ac2bbc47e0d7a544f2afcc4 (diff)
downloadop-kernel-dev-4dfe947e74a1de3eb638cc36d51bf56d6609057b.zip
op-kernel-dev-4dfe947e74a1de3eb638cc36d51bf56d6609057b.tar.gz
drm/radeon: fix passing wrong type to gem object create.
We are passing a ttm type when we want to pass true/false. Reported-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/radeon/radeon_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c
index dc1634b..11f4f30 100644
--- a/drivers/gpu/drm/radeon/radeon_fb.c
+++ b/drivers/gpu/drm/radeon/radeon_fb.c
@@ -118,7 +118,7 @@ static int radeonfb_create_pinned_object(struct radeon_fbdev *rfbdev,
aligned_size = ALIGN(size, PAGE_SIZE);
ret = radeon_gem_object_create(rdev, aligned_size, 0,
RADEON_GEM_DOMAIN_VRAM,
- false, ttm_bo_type_kernel,
+ false, true,
&gobj);
if (ret) {
printk(KERN_ERR "failed to allocate framebuffer (%d)\n",
OpenPOWER on IntegriCloud