From: Ville Syrjälä Date: Thu, 16 Jan 2014 16:27:15 +0000 (+0200) Subject: drm/i915: Eliminate lots of WARNs when there's no backlight present X-Git-Tag: v3.14-rc1~47^2~4^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc5a43636c2fd50c694f16d042e0639fff5044fd;p=pandora-kernel.git drm/i915: Eliminate lots of WARNs when there's no backlight present My 855gm doesn't register the intel backlight but it still ends up calling the backlight code to enable/disable the backlight via the LVDS code. This leads to some WARNs due to backlight.max being 0. Let's have intel_panel_enable_backlight() and intel_panel_disable_backlight() check whether there's a backlight present or not. Also move the backlight.present check from asle_set_backlight() into intel_panel_set_backlight() for some extra symmetry. Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed