ARM: OMAP3+: DPLL: stop reparenting to same parent if already done
[cascardo/linux.git] / arch / arm / mach-omap2 / dpll3xxx.c
index 3185ced..d9bcbf7 100644 (file)
@@ -525,7 +525,7 @@ int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,
        * stuff is inherited for free
        */
 
-       if (!ret)
+       if (!ret && clk_get_parent(hw->clk) != new_parent)
                __clk_reparent(hw->clk, new_parent);
 
        return 0;