drm/i915: Simplify cleanup path in intel_engines_init
We can call the engine cleanup vfunc instead of duplicating the decision making here. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
2f35afe94a
commit
8ee7c6e23b
|
@ -210,10 +210,8 @@ cleanup:
|
||||||
for_each_engine(engine, dev_priv, id) {
|
for_each_engine(engine, dev_priv, id) {
|
||||||
if (id >= err_id)
|
if (id >= err_id)
|
||||||
kfree(engine);
|
kfree(engine);
|
||||||
else if (i915.enable_execlists)
|
|
||||||
intel_logical_ring_cleanup(engine);
|
|
||||||
else
|
else
|
||||||
intel_engine_cleanup(engine);
|
dev_priv->gt.cleanup_engine(engine);
|
||||||
}
|
}
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue