From: Wei Yongjun Date: Tue, 25 Jun 2013 02:09:57 +0000 (+0800) Subject: pwm: renesas-tpu: fix return value check in tpu_probe() X-Git-Tag: v3.11-rc1~51^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00cf99ee00c9f1241359c8ee5ca9230318e27a57;p=pandora-kernel.git pwm: renesas-tpu: fix return value check in tpu_probe() In case of error, the function devm_ioremap_resource() 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 Reviewed-by: Axel Lin Acked-by: Laurent Pinchart Signed-off-by: Thierry Reding --- Reading git-diff-tree failed