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>
This commit is contained in:
parent
d033af87e2
commit
4dfe947e74
|
@ -118,7 +118,7 @@ static int radeonfb_create_pinned_object(struct radeon_fbdev *rfbdev,
|
||||||
aligned_size = ALIGN(size, PAGE_SIZE);
|
aligned_size = ALIGN(size, PAGE_SIZE);
|
||||||
ret = radeon_gem_object_create(rdev, aligned_size, 0,
|
ret = radeon_gem_object_create(rdev, aligned_size, 0,
|
||||||
RADEON_GEM_DOMAIN_VRAM,
|
RADEON_GEM_DOMAIN_VRAM,
|
||||||
false, ttm_bo_type_kernel,
|
false, true,
|
||||||
&gobj);
|
&gobj);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
printk(KERN_ERR "failed to allocate framebuffer (%d)\n",
|
printk(KERN_ERR "failed to allocate framebuffer (%d)\n",
|
||||||
|
|
Loading…
Reference in New Issue