From: Wei Yongjun Date: Fri, 28 Jun 2013 11:30:40 +0000 (+0800) Subject: pinctrl: st: fix return value check X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~30^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c75acdcae1be608b27414334d7e1febef7dbd99;p=pandora-kernel.git pinctrl: st: fix return value check In case of error, the function pinctrl_register() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. The function syscon_regmap_lookup_by_phandle() 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: Srinivas Kandagatla Signed-off-by: Mark Brown --- Reading git-diff-tree failed