From: Daniel Vetter Date: Thu, 25 Jul 2019 13:26:55 +0000 (+0200) Subject: drm/prime: Ditch gem_prime_res_obj hook X-Git-Tag: microblaze-v5.5-rc1~61^2~20^2~74 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=51c98747113e93b6229f12d1a744a51fd59eff3a;p=linux-2.6-microblaze.git drm/prime: Ditch gem_prime_res_obj hook Everyone is just using gem_object->resv now. Acked-by: Gerd Hoffmann Cc: Gerd Hoffmann Reviewed-by: Emil Velikov Signed-off-by: Daniel Vetter Cc: David Airlie Cc: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Link: https://patchwork.freedesktop.org/patch/msgid/20190725132655.11951-5-daniel.vetter@ffwll.ch --- diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst index b81cc007acb8..32787acff0a8 100644 --- a/Documentation/gpu/todo.rst +++ b/Documentation/gpu/todo.rst @@ -196,15 +196,6 @@ Might be good to also have some igt testcases for this. Contact: Daniel Vetter, Noralf Tronnes -Remove the ->gem_prime_res_obj callback --------------------------------------------- - -The ->gem_prime_res_obj callback can be removed from drivers by using the -reservation_object in the drm_gem_object. It may also be possible to use the -generic drm_gem_reservation_object_wait helper for waiting for a bo. - -Contact: Daniel Vetter - idr_init_base() --------------- diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c index eca484106cc2..0a2316e0e812 100644 --- a/drivers/gpu/drm/drm_prime.c +++ b/drivers/gpu/drm/drm_prime.c @@ -836,9 +836,6 @@ struct dma_buf *drm_gem_prime_export(struct drm_gem_object *obj, .resv = obj->resv, }; - if (dev->driver->gem_prime_res_obj) - exp_info.resv = dev->driver->gem_prime_res_obj(obj); - return drm_gem_dmabuf_export(dev, &exp_info); } EXPORT_SYMBOL(drm_gem_prime_export); diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h index b33f2cee2099..8976afe48c1c 100644 --- a/include/drm/drm_drv.h +++ b/include/drm/drm_drv.h @@ -615,18 +615,6 @@ struct drm_driver { */ struct sg_table *(*gem_prime_get_sg_table)(struct drm_gem_object *obj); - /** - * @gem_prime_res_obj: - * - * Optional hook to look up the &reservation_object for an buffer when - * exporting it. - * - * FIXME: This hook is deprecated. Users of this hook should be replaced - * by setting &drm_gem_object.resv instead. - */ - struct reservation_object * (*gem_prime_res_obj)( - struct drm_gem_object *obj); - /** * @gem_prime_import_sg_table: *