imx6q-cpufreq: fix return value check in imx6q_cpufreq_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 22 Feb 2013 04:39:30 +0000 (04:39 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 22 Feb 2013 23:30:25 +0000 (00:30 +0100)
In case of error, the function devm_regulator_get() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

No differences found