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) | ||
commit | c3c93cd97680959dc4c96402996ad6e29304c1b2 | |
tree | 8e105cc046e28df9a8474387b6fb1466b65cb5bc | tree | snapshot (tar.xz tar.gz zip) |
parent | 0deaaf49aca81cb827a31e0044ed516fb9c3bf0d | commit | diff |
PM / OPP: remove double calls to find_device_opp()
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>
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>
drivers/base/power/opp.c | diff | blob | history |