opp_find_freq_floor should return the lower "enabled* OPP from a starting freq from a start opp list. But current code returns next lower opp. This patch fixes this issue. Signed-off-by: Vishwanath BS <vishwanath.bs@xxxxxx> --- diff --git a/arch/arm/plat-omap/opp.c b/arch/arm/plat-omap/opp.c index bb8120e..13da451 --- a/arch/arm/plat-omap/opp.c +++ b/arch/arm/plat-omap/opp.c @@ -208,7 +208,7 @@ struct omap_opp *opp_find_freq_floor(enum opp_t opp_type, unsigned long *freq) *freq = prev_opp->rate; - return oppl; + return prev_opp; } /* wrapper to reuse converting opp_def to opp struct */ -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html