With the initial terminators removed from the OPP struct arrarys, the direct indexing of the array needs to be adjusted by one. Signed-off-by: Kevin Hilman <khilman@xxxxxxxxxxxxxxxxxxx> --- arch/arm/mach-omap2/resource34xx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/resource34xx.c b/arch/arm/mach-omap2/resource34xx.c index 05e70b7..1fa8bb5 100644 --- a/arch/arm/mach-omap2/resource34xx.c +++ b/arch/arm/mach-omap2/resource34xx.c @@ -337,8 +337,8 @@ static int program_opp(int res, struct omap_opp *opp, int target_level, #ifdef CONFIG_OMAP_SMARTREFLEX unsigned long t_opp, c_opp; - t_opp = ID_VDD(res) | ID_OPP_NO(opp[target_level].opp_id); - c_opp = ID_VDD(res) | ID_OPP_NO(opp[current_level].opp_id); + t_opp = ID_VDD(res) | ID_OPP_NO(opp[target_level - 1].opp_id); + c_opp = ID_VDD(res) | ID_OPP_NO(opp[current_level - 1].opp_id); #endif /* See if have a freq associated, if not, invalid opp */ -- 1.6.6.rc2.1.g42108 -- 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