Skip to content

Commit

Permalink
drm/i915: fix DP get_hw_state return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesse Barnes authored and Daniel Vetter committed Apr 2, 2013
1 parent 74cfd7a commit deb1821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit deb1821

Please sign in to comment.