Message ID | 1380634382-15609-6-git-send-email-Sudeep.KarkadaNagesha@arm.com (mailing list archive) |
---|---|
State | RFC, archived |
Headers | show |
On 1 October 2013 19:03, Sudeep KarkadaNagesha <Sudeep.KarkadaNagesha@arm.com> wrote: > From: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com> > > of_init_opp_table returns -EEXIST if an OPP list is already associated > with the device, before attempting to re-initialise it. In such cases, > dt_init_opp_table must return success as OPP table is initialised. > > Cc: "Rafael J. Wysocki" <rjw@sisk.pl> > Cc: Viresh Kumar <viresh.kumar@linaro.org> > Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com> > --- > drivers/cpufreq/arm_big_little_dt.c | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Viresh Kumar <viresh.kumar@linaro.org> -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/cpufreq/arm_big_little_dt.c b/drivers/cpufreq/arm_big_little_dt.c index b03d4fe..cc5d92e 100644 --- a/drivers/cpufreq/arm_big_little_dt.c +++ b/drivers/cpufreq/arm_big_little_dt.c @@ -56,6 +56,8 @@ static int dt_init_opp_table(struct device *cpu_dev) } ret = of_init_opp_table(cpu_dev); + if (ret == -EEXIST) + ret = 0; of_node_put(np); return ret;