]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: cpufreq-cpu0: NULL is a valid regulator, part 2
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 26 Sep 2013 09:19:37 +0000 (11:19 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Sep 2013 18:08:59 +0000 (20:08 +0200)
commitbd78abb9b096dbc027e133b935b683df990dba08
tree31188c7c97a6dd36e084877e72fbcdd9224a8cd7
parentb59bb29f528dd2c33e6cde51d16f6cb0cf0a288f
cpufreq: cpufreq-cpu0: NULL is a valid regulator, part 2

Since the patch "cpufreq: cpufreq-cpu0: NULL is a valid regulator", cpu_reg
contains an error value if the regulator is not set, instead of NULL.
Accordingly, fix the remaining check for non-NULL cpu_reg.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq-cpu0.c