[PATCH v2 5/5] cpufreq: arm_big_little_dt: return success if OPP list already exists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Sudeep KarkadaNagesha <sudeep.karkadanagesha@xxxxxxx>

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@xxxxxxx>
Cc: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@xxxxxxx>
---
 drivers/cpufreq/arm_big_little_dt.c | 2 ++
 1 file changed, 2 insertions(+)

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;
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe cpufreq" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux