[Intel-xe] [RFC PATCH v2 19/23] drm/i915/display: Use drm_gem_object_get/put
Jouni Högander
jouni.hogander at intel.com
Wed May 10 12:11:48 UTC 2023
Use drm_gem_object_ge/put directly instead of i915_gem_object_get/put.
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
drivers/gpu/drm/i915/display/intel_frontbuffer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_frontbuffer.c b/drivers/gpu/drm/i915/display/intel_frontbuffer.c
index 51fb0ca0267e..6c3f9b4f76cb 100644
--- a/drivers/gpu/drm/i915/display/intel_frontbuffer.c
+++ b/drivers/gpu/drm/i915/display/intel_frontbuffer.c
@@ -237,7 +237,8 @@ static void frontbuffer_release(struct kref *ref)
i915_active_fini(&front->write);
- i915_gem_object_put(obj);
+ drm_gem_object_put(&intel_bo_to_drm_bo(obj));
+
kfree_rcu(front, rcu);
}
--
2.34.1
More information about the Intel-xe
mailing list