commit | 3a3656d4011625cf98f8cc351968fe30af3cc9ac | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Fri Feb 22 04:39:30 2013 +0000 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Sat Feb 23 00:30:25 2013 +0100 |
tree | 7bd84c6a566f148ca81709a81c32c33b0a3f091c | |
parent | d6561bb206aae9de8eee4516549339ee96386b87 [diff] |
imx6q-cpufreq: fix return value check in imx6q_cpufreq_probe() 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>