diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_panel.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_panel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index 20ebc3e83d39..350de359123a 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c | |||
@@ -502,7 +502,7 @@ void intel_panel_set_backlight(struct intel_connector *connector, u32 level, | |||
502 | u32 freq; | 502 | u32 freq; |
503 | unsigned long flags; | 503 | unsigned long flags; |
504 | 504 | ||
505 | if (pipe == INVALID_PIPE) | 505 | if (!panel->backlight.present || pipe == INVALID_PIPE) |
506 | return; | 506 | return; |
507 | 507 | ||
508 | spin_lock_irqsave(&dev_priv->backlight_lock, flags); | 508 | spin_lock_irqsave(&dev_priv->backlight_lock, flags); |
@@ -579,7 +579,7 @@ void intel_panel_disable_backlight(struct intel_connector *connector) | |||
579 | enum pipe pipe = intel_get_pipe_from_connector(connector); | 579 | enum pipe pipe = intel_get_pipe_from_connector(connector); |
580 | unsigned long flags; | 580 | unsigned long flags; |
581 | 581 | ||
582 | if (pipe == INVALID_PIPE) | 582 | if (!panel->backlight.present || pipe == INVALID_PIPE) |
583 | return; | 583 | return; |
584 | 584 | ||
585 | /* | 585 | /* |
@@ -782,7 +782,7 @@ void intel_panel_enable_backlight(struct intel_connector *connector) | |||
782 | enum pipe pipe = intel_get_pipe_from_connector(connector); | 782 | enum pipe pipe = intel_get_pipe_from_connector(connector); |
783 | unsigned long flags; | 783 | unsigned long flags; |
784 | 784 | ||
785 | if (pipe == INVALID_PIPE) | 785 | if (!panel->backlight.present || pipe == INVALID_PIPE) |
786 | return; | 786 | return; |
787 | 787 | ||
788 | DRM_DEBUG_KMS("pipe %c\n", pipe_name(pipe)); | 788 | DRM_DEBUG_KMS("pipe %c\n", pipe_name(pipe)); |