diff options
-rw-r--r-- | drivers/gpu/drm/i915/intel_tv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c index 5d9ca779ce25..d2c32983242d 100644 --- a/drivers/gpu/drm/i915/intel_tv.c +++ b/drivers/gpu/drm/i915/intel_tv.c | |||
@@ -1570,6 +1570,8 @@ intel_tv_set_property(struct drm_connector *connector, struct drm_property *prop | |||
1570 | struct drm_device *dev = connector->dev; | 1570 | struct drm_device *dev = connector->dev; |
1571 | struct intel_output *intel_output = to_intel_output(connector); | 1571 | struct intel_output *intel_output = to_intel_output(connector); |
1572 | struct intel_tv_priv *tv_priv = intel_output->dev_priv; | 1572 | struct intel_tv_priv *tv_priv = intel_output->dev_priv; |
1573 | struct drm_encoder *encoder = &intel_output->enc; | ||
1574 | struct drm_crtc *crtc = encoder->crtc; | ||
1573 | int ret = 0; | 1575 | int ret = 0; |
1574 | bool changed = false; | 1576 | bool changed = false; |
1575 | 1577 | ||
@@ -1608,8 +1610,9 @@ intel_tv_set_property(struct drm_connector *connector, struct drm_property *prop | |||
1608 | goto out; | 1610 | goto out; |
1609 | } | 1611 | } |
1610 | 1612 | ||
1611 | if (changed) | 1613 | if (changed && crtc) |
1612 | intel_tv_mode_set(&intel_output->enc, NULL, NULL); | 1614 | drm_crtc_helper_set_mode(crtc, &crtc->mode, crtc->x, |
1615 | crtc->y, crtc->fb); | ||
1613 | out: | 1616 | out: |
1614 | return ret; | 1617 | return ret; |
1615 | } | 1618 | } |