diff options
author | Jani Nikula <jani.nikula@intel.com> | 2013-09-18 17:19:45 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-19 14:39:53 +0200 |
commit | 912e8b12eedb41c69717deda2b2a08e7292945fc (patch) | |
tree | d6c26d570f32a200e333a30491eef1b2cc4f627e /drivers/gpu/drm/i915/intel_panel.c | |
parent | 515b239269fb67fd167676d335a56ef0c13e53d5 (diff) | |
download | op-kernel-dev-912e8b12eedb41c69717deda2b2a08e7292945fc.zip op-kernel-dev-912e8b12eedb41c69717deda2b2a08e7292945fc.tar.gz |
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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_panel.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index e36149d..0aaeb8b 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -658,7 +658,7 @@ intel_panel_detect(struct drm_device *dev) } } -#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE +#if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE) static int intel_panel_update_status(struct backlight_device *bd) { struct drm_device *dev = bl_get_data(bd); |