summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0deaaf4)
raw | patch | inline | side by side (parent: 0deaaf4)
author | Viresh Kumar <viresh.kumar@linaro.org> | |
Mon, 8 Dec 2014 08:16:18 +0000 (13:46 +0530) | ||
committer | Ravikumar Kattekola <rk@ti.com> | |
Fri, 14 Aug 2015 04:51:20 +0000 (10:21 +0530) |
By mistake we called find_device_opp() twice in of_free_opp_table(), fix it.
Generated diff doesn't show the problem well and so here is the code snippet:
void of_free_opp_table(struct device *dev)
{
struct device_opp *dev_opp = find_device_opp(dev);
struct dev_pm_opp *opp, *tmp;
/* Check for existing list for 'dev' */
dev_opp = find_device_opp(dev);
...
}
Change-Id: I05b7e91d4c38147a9eea254ad88393a5d2147762
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Generated diff doesn't show the problem well and so here is the code snippet:
void of_free_opp_table(struct device *dev)
{
struct device_opp *dev_opp = find_device_opp(dev);
struct dev_pm_opp *opp, *tmp;
/* Check for existing list for 'dev' */
dev_opp = find_device_opp(dev);
...
}
Change-Id: I05b7e91d4c38147a9eea254ad88393a5d2147762
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp.c | patch | blob | history |
index 5b3dbed74e54d02f3179d51eb6c01e7320e9feea..827525282e62b44ebec33923ede57d836befacad 100644 (file)
--- a/drivers/base/power/opp.c
+++ b/drivers/base/power/opp.c
*/
void of_free_opp_table(struct device *dev)
{
- struct device_opp *dev_opp = find_device_opp(dev);
+ struct device_opp *dev_opp;
struct dev_pm_opp *opp, *tmp;
/* Check for existing list for 'dev' */