drm/i915: register backlight device also when backlight class is a module
authorJani Nikula <jani.nikula@intel.com>
Wed, 18 Sep 2013 14:19:45 +0000 (17:19 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 19 Sep 2013 12:39:53 +0000 (14:39 +0200)
commit912e8b12eedb41c69717deda2b2a08e7292945fc
treed6c26d570f32a200e333a30491eef1b2cc4f627e
parent515b239269fb67fd167676d335a56ef0c13e53d5
drm/i915: register backlight device also when backlight class is a module

Ville and I were wondering why his laptop was missing the
intel_backlight sysfs interface. Turns out we never register it when
CONFIG_BACKLIGHT_CLASS_DEVICE=m. This has been broken ever since the
i915 native backlight interface was added.

CC: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_panel.c