From: Nishanth Menon Date: Fri, 28 Feb 2014 19:43:47 +0000 (-0700) Subject: ARM: OMAP3+: DPLL: stop reparenting to same parent if already done X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=110e884d829448e24959f424b31be5bc75bcca6e;p=linux-beck.git ARM: OMAP3+: DPLL: stop reparenting to same parent if already done omap3_noncore_dpll_set_rate forces a reparent to the same clk_ref for every call that takes place. This is an can be done only if a change is detected. Signed-off-by: Nishanth Menon Acked-by: Tero Kristo Signed-off-by: Paul Walmsley --- diff --git a/arch/arm/mach-omap2/dpll3xxx.c b/arch/arm/mach-omap2/dpll3xxx.c index 3185ced807c9..d9bcbf7641b5 100644 --- a/arch/arm/mach-omap2/dpll3xxx.c +++ b/arch/arm/mach-omap2/dpll3xxx.c @@ -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;