summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2013-04-02 17:03:55 (GMT)
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-04-02 18:25:39 (GMT)
commit22f9fe50597094970a9bcdf2464fc3b356fbedb6 (patch)
tree68da3839169867caeb7680a641fb90aa52ba1902 /drivers/gpu
parentdeb18211a110c102d32b3e9ed866bd7d25e0f8d5 (diff)
downloadlinux-fsl-qoriq-22f9fe50597094970a9bcdf2464fc3b356fbedb6.tar.xz
drm/i915: fix DDI get_hw_state return value
If we couldn't find a pipe we shouldn't return true. This might be even better as a WARN though, since it should be impossible to have the port enabled without a pipe selected. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/intel_ddi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index 6c6b012..22524cb 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -1150,7 +1150,7 @@ bool intel_ddi_get_hw_state(struct intel_encoder *encoder,
DRM_DEBUG_KMS("No pipe for ddi port %i found\n", port);
- return true;
+ return false;
}
static uint32_t intel_ddi_get_crtc_pll(struct drm_i915_private *dev_priv,