OSDN Git Service

drm/i915: Remove obsolete engine cleanup
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Jul 2019 07:00:10 +0000 (08:00 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Jul 2019 22:16:06 +0000 (23:16 +0100)
commitf3bcb0cccd36c6eb6e3afbd61f83eeca32d6cc50
tree46df524faadafbca4e3b2be4c26db2d57575b296
parent04364138ce9bd812e8eeda84febf7259e27ff57d
drm/i915: Remove obsolete engine cleanup

Remove the outer layer cleanup of engine stubs; as i915_drv itself no
longer tries to preallocate and so is not responsible for either the
allocation or free. By the time we call the cleanup function, we already
have cleaned up the engines.

v2: Lack of symmetry between mmio_probe and mmio_release for handling
the error cleanup. engine->destroy() is a compound function that is
called earlier in the normal release as it ties together other bits of
state.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190718070024.21781-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c