video: tegra: dc: Call display client disable before dc irq disable
[linux-2.6.git] / drivers / video / tegra / dc / dc.c
index bdd0a02..9548427 100644 (file)
@@ -2481,13 +2481,13 @@ static void _tegra_dc_controller_disable(struct tegra_dc *dc)
 {
        unsigned i;
 
+       if (dc->out_ops && dc->out_ops->disable)
+               dc->out_ops->disable(dc);
+
        tegra_dc_writel(dc, 0, DC_CMD_INT_MASK);
        tegra_dc_writel(dc, 0, DC_CMD_INT_ENABLE);
        disable_irq(dc->irq);
 
-       if (dc->out_ops && dc->out_ops->disable)
-               dc->out_ops->disable(dc);
-
        tegra_dc_clear_bandwidth(dc);
        clk_disable(dc->clk);
        tegra_dvfs_set_rate(dc->clk, 0);