]> git.karo-electronics.de Git - linux-beck.git/commit
cpufreq: cpufreq-dt: Handle regulator_get_voltage() failure
authorStefan Wahren <stefan.wahren@i2se.com>
Fri, 17 Oct 2014 22:09:49 +0000 (22:09 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 6 Nov 2014 00:28:59 +0000 (01:28 +0100)
commit8197bb1bffbee6a7678d20b4c1e77940cdaa8640
tree88b21606bdd410f7ed4e3498f71e177e6039131e
parent0a1e879d353f6f6e661d14c6a0e42dd19efbc504
cpufreq: cpufreq-dt: Handle regulator_get_voltage() failure

In error cases regulator_get_voltage() returns a negative value.
So take care of it.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq-dt.c