Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310575
b: refs/heads/master
c: 6037baf
h: refs/heads/master
i:
  310573: 94d6dd5
  310571: 409c2fd
  310567: acbaa74
  310559: 6a309fe
v: v3
  • Loading branch information
Laurent Pinchart authored and Inki Dae committed Jun 5, 2012
1 parent b7b78c2 commit 58acb5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 293a1c128ecc523e9a74252ca64220d8081be759
refs/heads/master: 6037bafa2e676162a86e4f4dee366e394565a0ee
9 changes: 3 additions & 6 deletions trunk/drivers/gpu/drm/exynos/exynos_drm_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,6 @@ int exynos_drm_gem_dumb_map_offset(struct drm_file *file_priv,
struct drm_device *dev, uint32_t handle,
uint64_t *offset)
{
struct exynos_drm_gem_obj *exynos_gem_obj;
struct drm_gem_object *obj;
int ret = 0;

Expand All @@ -710,15 +709,13 @@ int exynos_drm_gem_dumb_map_offset(struct drm_file *file_priv,
goto unlock;
}

exynos_gem_obj = to_exynos_gem_obj(obj);

if (!exynos_gem_obj->base.map_list.map) {
ret = drm_gem_create_mmap_offset(&exynos_gem_obj->base);
if (!obj->map_list.map) {
ret = drm_gem_create_mmap_offset(obj);
if (ret)
goto out;
}

*offset = (u64)exynos_gem_obj->base.map_list.hash.key << PAGE_SHIFT;
*offset = (u64)obj->map_list.hash.key << PAGE_SHIFT;
DRM_DEBUG_KMS("offset = 0x%lx\n", (unsigned long)*offset);

out:
Expand Down

0 comments on commit 58acb5f

Please sign in to comment.