]> git.baikalelectronics.ru Git - kernel.git/commit
PM / OPP: Return suspend_opp only if it is enabled
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 Sep 2015 11:28:22 +0000 (16:58 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Sep 2015 20:53:37 +0000 (22:53 +0200)
commitf929466470d1fedcf89af248f9353f0d8f55dc2d
tree37edfaad03b3d748e0d951b697e519a91e5328c9
parent3dbd3ffdd3175a4c46695670fb054c7f9bd08461
PM / OPP: Return suspend_opp only if it is enabled

There is no point returning suspend_opp, if it is disabled by the core.
As we can't use it at all. Fix it.

Fixes: 3dbd3ffdd317 ("PM / OPP: add dev_pm_opp_get_suspend_opp() helper")
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