drm/i915: Cleanup modesetting on load-error path
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jul 2018 09:44:21 +0000 (10:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Jul 2018 13:09:18 +0000 (14:09 +0100)
commit73bad7ca87b65a91f61cf34b92a1febd689c01c1
tree6290fceb9b67de00c8fe0ed02c7edfa8c3918b86
parent8bcf9f7034d81979837e97a6509b0b2a96f8f4c8
drm/i915: Cleanup modesetting on load-error path

After handling a critical failure initialising GEM we need to unwind the
modesetting setup.

Testcase: igt/drv_module_reload/basic-reload-inject
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180710094421.16223-2-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/i915_drv.c