drm/i915: Move backlight unregistration to connector unregistration
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jun 2016 10:40:34 +0000 (11:40 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 19 Jun 2016 08:39:13 +0000 (10:39 +0200)
commite63d87c0b02f2f0ee876ea79dcbe13a7235a2d55
tree447abf3e696131fb83f200bdf3f5d468884869c9
parentc191eca110a372897b23caeaa6e688fdbb78f01f
drm/i915: Move backlight unregistration to connector unregistration

Currently the backlight is being unregistered in the unload phase (after
the display and its objects are unregistered). Move the backlight
unregistration into the analogous phase by performing it from the
connector unregistration, just prior to its deletion.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1466160034-12173-3-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_panel.c