[PATCH 3/4] cpufreq: dt: Try freeing static OPPs only if we have added them

2018-10-03 Thread Viresh Kumar
We can not call dev_pm_opp_of_cpumask_remove_table() freely anymore since the latest OPP core updates as that uses reference counting to free resources. There are cases where no static OPPs are added (using DT) for a platform and trying to remove the OPP table may end up decrementing refcount

[PATCH 3/4] cpufreq: dt: Try freeing static OPPs only if we have added them

2018-10-03 Thread Viresh Kumar
We can not call dev_pm_opp_of_cpumask_remove_table() freely anymore since the latest OPP core updates as that uses reference counting to free resources. There are cases where no static OPPs are added (using DT) for a platform and trying to remove the OPP table may end up decrementing refcount