From: Wei Yongjun Date: Fri, 22 Feb 2013 04:39:30 +0000 (+0000) Subject: imx6q-cpufreq: fix return value check in imx6q_cpufreq_probe() X-Git-Tag: v3.9-rc1~81^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a3656d4011625cf98f8cc351968fe30af3cc9ac;p=pandora-kernel.git 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 Acked-by: Viresh Kumar Acked-by: Shawn Guo Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed