drm/i915: split intel_modeset_driver_remove() to pre/post irq uninstall
authorJani Nikula <jani.nikula@intel.com>
Fri, 14 Feb 2020 13:50:57 +0000 (15:50 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 19 Feb 2020 13:16:27 +0000 (15:16 +0200)
commit93a0ed6cc164bad2bc9afcf1d06186f8425020af
treeb9ec37cde674798cc9086ca9c237c7a0ff727c12
parent200452f1cb437895cb4bb0fcb0d5b74afdbf17ac
drm/i915: split intel_modeset_driver_remove() to pre/post irq uninstall

Split intel_modeset_driver_remove() to two, the part with working irqs
before irq uninstall, and the part after irq uninstall. Move
irq_unintall() closer to the layer it belongs.

The error path in i915_driver_modeset_probe() looks obviously weird
after this, but remains as good or broken as it ever was. No functional
changes.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200214135058.7580-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/i915_drv.c