From: Zheng Yang Date: Tue, 27 Jun 2017 06:10:51 +0000 (+0800) Subject: drm: bridge: dw-hdmi: correct the judgment condition of curr_ctrl X-Git-Tag: release-20171130_firefly~4^2~302 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=firefly-linux-kernel-4.4.55.git;a=commitdiff_plain;h=6321294fd38dda4c0d0fc3aa3547e713c79709fe drm: bridge: dw-hdmi: correct the judgment condition of curr_ctrl The judgment condition of curr_ctrl is curr_ctrl->mpixelclock. It is a hand mistake of commit <594a077e31e8b1ff0bd192e9af702fecaeea31ba>, when patch(https://patchwork.kernel.org/patch/9603303) is merged. Change-Id: I40b150e4f166aa4ca05c078f52347764bdd1fd01 Signed-off-by: Zheng Yang --- diff --git a/drivers/gpu/drm/bridge/dw-hdmi.c b/drivers/gpu/drm/bridge/dw-hdmi.c index 47b672256003..d1965166f46a 100644 --- a/drivers/gpu/drm/bridge/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/dw-hdmi.c @@ -1415,7 +1415,7 @@ static int hdmi_phy_configure_dwc_hdmi_3d_tx(struct dw_hdmi *hdmi, break; for (; curr_ctrl->mpixelclock != ~0UL; curr_ctrl++) - if (mpixelclock <= mpll_config->mpixelclock) + if (mpixelclock <= curr_ctrl->mpixelclock) break; for (; phy_config->mpixelclock != ~0UL; phy_config++)