diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2009-12-01 21:03:32 -0500 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-12-02 02:25:17 -0500 |
commit | f24bc39facc1e74eb989908106fe9f6d375ae16e (patch) | |
tree | 22a5f0c7e74d9a3119c7d75d0b6b6fc96e9019fe | |
parent | f0217c42c9ab3d772e543f635ce628b9478f70b6 (diff) |
drm/i915: fix the incorrect condition judgement in dp_is_present_in_vbt
We were always looking for the PORT_IDPB entry.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index a86af0d24fd3..e0e835e6a75c 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -1247,11 +1247,11 @@ int dp_is_present_in_vbt(struct drm_device *dev, int dp_reg) | |||
1247 | return 1; | 1247 | return 1; |
1248 | 1248 | ||
1249 | dp_port = 0; | 1249 | dp_port = 0; |
1250 | if (dp_reg == DP_B || PCH_DP_B) | 1250 | if (dp_reg == DP_B || dp_reg == PCH_DP_B) |
1251 | dp_port = PORT_IDPB; | 1251 | dp_port = PORT_IDPB; |
1252 | else if (dp_reg == DP_C || PCH_DP_C) | 1252 | else if (dp_reg == DP_C || dp_reg == PCH_DP_C) |
1253 | dp_port = PORT_IDPC; | 1253 | dp_port = PORT_IDPC; |
1254 | else if (dp_reg == DP_D || PCH_DP_D) | 1254 | else if (dp_reg == DP_D || dp_reg == PCH_DP_D) |
1255 | dp_port = PORT_IDPD; | 1255 | dp_port = PORT_IDPD; |
1256 | 1256 | ||
1257 | ret = 0; | 1257 | ret = 0; |