Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 110e884d authored by Nishanth Menon's avatar Nishanth Menon Committed by Paul Walmsley
Browse files

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: default avatarNishanth Menon <nm@ti.com>
Acked-by: default avatarTero Kristo <t-kristo@ti.com>
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
parent 0cc1d944
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;