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

Commit bb0b7320 authored by Afzal Mohammed's avatar Afzal Mohammed Committed by Paul Walmsley
Browse files

ARM: OMAP2+: dpll: am335x - avoid freqsel



am335x does not have freqsel, avoid it.

Signed-off-by: default avatarAfzal Mohammed <afzal@ti.com>
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
parent 949db153
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -500,8 +500,9 @@ int omap3_noncore_dpll_set_rate(struct clk_hw *hw, unsigned long rate,
		if (dd->last_rounded_rate == 0)
			return -EINVAL;

		/* No freqsel on OMAP4 and OMAP3630 */
		if (!cpu_is_omap44xx() && !cpu_is_omap3630()) {
		/* No freqsel on AM335x, OMAP4 and OMAP3630 */
		if (!soc_is_am33xx() && !cpu_is_omap44xx() &&
		    !cpu_is_omap3630()) {
			freqsel = _omap3_dpll_compute_freqsel(clk,
						dd->last_rounded_n);
			WARN_ON(!freqsel);