projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drm/gem: create drm_gem_dumb_destroy
[deliverable/linux.git]
/
drivers
/
gpu
/
host1x
/
drm
/
gem.c
diff --git
a/drivers/gpu/host1x/drm/gem.c
b/drivers/gpu/host1x/drm/gem.c
index c5e9a9b494c2c3b1973194bd49295d4585072556..3c35622c9f15025f297c2d1aaacdd4e440483411 100644
(file)
--- a/
drivers/gpu/host1x/drm/gem.c
+++ b/
drivers/gpu/host1x/drm/gem.c
@@
-108,7
+108,7
@@
static void tegra_bo_destroy(struct drm_device *drm, struct tegra_bo *bo)
unsigned int tegra_bo_get_mmap_offset(struct tegra_bo *bo)
{
unsigned int tegra_bo_get_mmap_offset(struct tegra_bo *bo)
{
- return (unsigned int)
bo->gem.map_list.hash.key << PAGE_SHIFT
;
+ return (unsigned int)
drm_vma_node_offset_addr(&bo->gem.vma_node)
;
}
struct tegra_bo *tegra_bo_create(struct drm_device *drm, unsigned int size)
}
struct tegra_bo *tegra_bo_create(struct drm_device *drm, unsigned int size)
@@
-182,8
+182,7
@@
void tegra_bo_free_object(struct drm_gem_object *gem)
{
struct tegra_bo *bo = to_tegra_bo(gem);
{
struct tegra_bo *bo = to_tegra_bo(gem);
- if (gem->map_list.map)
- drm_gem_free_mmap_offset(gem);
+ drm_gem_free_mmap_offset(gem);
drm_gem_object_release(gem);
tegra_bo_destroy(gem->dev, bo);
drm_gem_object_release(gem);
tegra_bo_destroy(gem->dev, bo);
@@
-262,9
+261,3
@@
int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma)
return ret;
}
return ret;
}
-
-int tegra_bo_dumb_destroy(struct drm_file *file, struct drm_device *drm,
- unsigned int handle)
-{
- return drm_gem_handle_delete(file, handle);
-}
This page took
0.037365 seconds
and
5
git commands to generate.