drm/i915: Fix power domain HW state cleanup on error path
commit65ff442f6bca0e2247ff7acac6014bcea69d1f7e
authorImre Deak <imre.deak@intel.com>
Wed, 16 Mar 2016 11:39:07 +0000 (16 13:39 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 17 Mar 2016 13:22:08 +0000 (17 15:22 +0200)
treeb477686a06885de48a0d0ca11fbca17b7cd685c3
parent432f856d8b4963f2f1d95844794266d7c9a9ca97
drm/i915: Fix power domain HW state cleanup on error path

Move the cleanup of the power domain HW state on the error path to the
same function where the corresponding init call was called from. I
noticed this problem when loading the module with load failure injection
enabled, making i915_load_modeset_init() fail.

CC: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1458128348-15730-19-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_dma.c