From: Wei Yongjun Date: Fri, 22 Feb 2013 02:52:35 +0000 (+0800) Subject: spi: fix return value check in ce4100_spi_probe() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~130^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d77b5382e67d1e1394e40c5c95fb5947efe0ff9e;p=pandora-kernel.git spi: fix return value check in ce4100_spi_probe() In case of error, the function platform_device_register_full() 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: Mika Westerberg Signed-off-by: Mark Brown --- Reading git-diff-tree failed