]> git.baikalelectronics.ru Git - kernel.git/commit
PM / OPP: Remove useless check
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 4 May 2016 13:19:55 +0000 (18:49 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 4 May 2016 23:42:19 +0000 (01:42 +0200)
commit45b617451127f9a903eca36a015857d1c70390c4
treedee8e88592898dceb5ab65883919bb470923c34f
parent92c210dea15db4dd0ee386a76eaf2970675f69b5
PM / OPP: Remove useless check

Regulators are optional for devices using OPPs and the OPP core
shouldn't be printing any errors for such missing regulators.

It was fine before the commit 134312ea2145, but that failed to update
this part of the code to remove an 'always true' check and an extra
unwanted print message.

Fix that now.

Fixes: 134312ea2145 (PM / OPP: Initialize regulator pointer to an error value)
Reported-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/core.c