aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/mxc_hdmi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/mxc_hdmi.c b/drivers/video/mxc_hdmi.c
index 97547a90adc..b212ad128b7 100644
--- a/drivers/video/mxc_hdmi.c
+++ b/drivers/video/mxc_hdmi.c
@@ -1969,12 +1969,12 @@ static void mxc_hdmi_fb_registered(struct mxc_hdmi *hdmi)
if (hdmi->fb_reg)
return;
+ clk_enable(hdmi->hdmi_iahb_clk);
+
spin_lock_irqsave(&hdmi->irq_lock, flags);
dev_dbg(&hdmi->pdev->dev, "%s\n", __func__);
- clk_enable(hdmi->hdmi_iahb_clk);
-
hdmi_writeb(HDMI_PHY_I2CM_INT_ADDR_DONE_POL,
HDMI_PHY_I2CM_INT_ADDR);
@@ -1993,9 +1993,9 @@ static void mxc_hdmi_fb_registered(struct mxc_hdmi *hdmi)
hdmi->fb_reg = true;
- clk_disable(hdmi->hdmi_iahb_clk);
-
spin_unlock_irqrestore(&hdmi->irq_lock, flags);
+
+ clk_disable(hdmi->hdmi_iahb_clk);
}
static int mxc_hdmi_fb_event(struct notifier_block *nb,