drm/i915: Move final cleanup of drm_i915_private to i915_driver_destroy
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 5 Sep 2018 14:09:21 +0000 (15:09 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 5 Sep 2018 19:58:35 +0000 (20:58 +0100)
commit31962ca6a26087eea255c000ea9fa4ffbdad697b
tree02939a75a623d5a417c693576279805c86b2e5db
parent55ac5a1614f99816ed367a9ded5f5d65321b522f
drm/i915: Move final cleanup of drm_i915_private to i915_driver_destroy

Introduce a complementary function to i915_driver_create() to undo all
that is created.

Suggested-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180905140921.17467-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c