diff options
author | Kevin Brace <kevinbrace@gmx.com> | 2021-03-31 11:20:37 -0700 |
---|---|---|
committer | Kevin Brace <kevinbrace@gmx.com> | 2021-03-31 11:20:37 -0700 |
commit | 7bf5efbecec1271225976a16e86e9cf45eed59bf (patch) | |
tree | 7726963bd2e411ff443178afe84ea3e96b3c9804 /drivers/gpu/drm/openchrome | |
parent | 2e39bc5c853b81610319326e88461b2e3e76953e (diff) |
drm/ttm: replace last move_notify with delete_mem_notify
Based on commit 6a6e598 (drm/ttm: replace last move_notify with
delete_mem_notify).
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
Diffstat (limited to 'drivers/gpu/drm/openchrome')
-rw-r--r-- | drivers/gpu/drm/openchrome/openchrome_ttm.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/gpu/drm/openchrome/openchrome_ttm.c b/drivers/gpu/drm/openchrome/openchrome_ttm.c index b4b5b23c34e7..fd2ebda4ce65 100644 --- a/drivers/gpu/drm/openchrome/openchrome_ttm.c +++ b/drivers/gpu/drm/openchrome/openchrome_ttm.c @@ -42,10 +42,16 @@ #include "openchrome_drv.h" + static void openchrome_bo_move_notify(struct ttm_buffer_object *bo, bool evict, - struct ttm_resource *new_mem); + struct ttm_resource *new_mem) +{ + DRM_DEBUG_KMS("Entered %s.\n", __func__); + DRM_DEBUG_KMS("Exiting %s.\n", __func__); + return; +} static struct ttm_tt *openchrome_ttm_tt_create( struct ttm_buffer_object *bo, @@ -136,12 +142,12 @@ static int openchrome_bo_verify_access(struct ttm_buffer_object *bo, return 0; } -static void openchrome_bo_move_notify(struct ttm_buffer_object *bo, - bool evict, - struct ttm_resource *new_mem) +static void openchrome_bo_delete_mem_notify(struct ttm_buffer_object *bo) { DRM_DEBUG_KMS("Entered %s.\n", __func__); + openchrome_bo_move_notify(bo, false, NULL); + DRM_DEBUG_KMS("Exiting %s.\n", __func__); return; } @@ -179,6 +185,6 @@ struct ttm_bo_driver openchrome_bo_driver = { .evict_flags = openchrome_bo_evict_flags, .move = openchrome_bo_move, .verify_access = openchrome_bo_verify_access, - .move_notify = openchrome_bo_move_notify, + .delete_mem_notify = openchrome_bo_delete_mem_notify, .io_mem_reserve = openchrome_bo_io_mem_reserve, }; |