提交 deb18211 编写于 作者: J Jesse Barnes 提交者: Daniel Vetter

drm/i915: fix DP 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: NJesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 74cfd7ac
......@@ -1361,7 +1361,7 @@ static bool intel_dp_get_hw_state(struct intel_encoder *encoder,
intel_dp->output_reg);
}
return true;
return false;
}
static void intel_disable_dp(struct intel_encoder *encoder)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册