summaryrefslogtreecommitdiffstats
path: root/drivers/base/power
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-12-08 13:46:18 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-12-10 02:39:12 +0100
commit2a6127d037de96e8add0b09e0200b331a4db54be (patch)
treee7eb6517fb34c606f13e414b5e6b87151094327e /drivers/base/power
parent7284a00f17290114d304528fc49aeee5c2b9b433 (diff)
downloadop-kernel-dev-2a6127d037de96e8add0b09e0200b331a4db54be.zip
op-kernel-dev-2a6127d037de96e8add0b09e0200b331a4db54be.tar.gz
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); ... } Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power')
-rw-r--r--drivers/base/power/opp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c
index c202052..1bbef8e 100644
--- a/drivers/base/power/opp.c
+++ b/drivers/base/power/opp.c
@@ -768,7 +768,7 @@ EXPORT_SYMBOL_GPL(of_init_opp_table);
*/
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' */
OpenPOWER on IntegriCloud