diff options
Diffstat (limited to 'drivers/gpu/drm/ast/ast_main.c')
-rw-r--r-- | drivers/gpu/drm/ast/ast_main.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c index f60fd7bd1183..7f6152d374ca 100644 --- a/drivers/gpu/drm/ast/ast_main.c +++ b/drivers/gpu/drm/ast/ast_main.c | |||
@@ -449,13 +449,6 @@ int ast_dumb_create(struct drm_file *file, | |||
449 | return 0; | 449 | return 0; |
450 | } | 450 | } |
451 | 451 | ||
452 | int ast_dumb_destroy(struct drm_file *file, | ||
453 | struct drm_device *dev, | ||
454 | uint32_t handle) | ||
455 | { | ||
456 | return drm_gem_handle_delete(file, handle); | ||
457 | } | ||
458 | |||
459 | int ast_gem_init_object(struct drm_gem_object *obj) | 452 | int ast_gem_init_object(struct drm_gem_object *obj) |
460 | { | 453 | { |
461 | BUG(); | 454 | BUG(); |
@@ -487,7 +480,7 @@ void ast_gem_free_object(struct drm_gem_object *obj) | |||
487 | 480 | ||
488 | static inline u64 ast_bo_mmap_offset(struct ast_bo *bo) | 481 | static inline u64 ast_bo_mmap_offset(struct ast_bo *bo) |
489 | { | 482 | { |
490 | return bo->bo.addr_space_offset; | 483 | return drm_vma_node_offset_addr(&bo->bo.vma_node); |
491 | } | 484 | } |
492 | int | 485 | int |
493 | ast_dumb_mmap_offset(struct drm_file *file, | 486 | ast_dumb_mmap_offset(struct drm_file *file, |