]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: cpufreq-cpu0: NULL is a valid regulator
authorMark Brown <broonie@linaro.org>
Tue, 13 Aug 2013 12:58:24 +0000 (14:58 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Aug 2013 20:24:22 +0000 (22:24 +0200)
commit02b9d3a70f8222ab69e41a7c699c9276a0cfe411
tree20ddaa54c87e088d2eadc3600ea4ebd5bbe7383b
parent36c08ad94212595d3b3cb3ca29af1b8427ae7d50
cpufreq: cpufreq-cpu0: NULL is a valid regulator

Since NULL could in theory be a valid regulator we ought to check for
IS_ERR() rather than for NULL. In practice this is unlikely to be an
issue but it's better for neatness.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq-cpu0.c