drm/i915: Drop unneed i915 parameter from intel_ring_pin()

As we now have a ring->vma available, we can just lookup our i915
pointer from inside the vm, and so not require the unsightly parameter.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180727155501.18963-1-chris@chris-wilson.co.uk
This commit is contained in:
Chris Wilson
2018-07-27 16:55:01 +01:00
parent 905febf592
commit 5503cb0dec
3 changed files with 6 additions and 5 deletions

View File

@@ -1331,7 +1331,7 @@ __execlists_context_pin(struct intel_engine_cs *engine,
goto unpin_vma;
}
ret = intel_ring_pin(ce->ring, ctx->i915);
ret = intel_ring_pin(ce->ring);
if (ret)
goto unpin_map;