From: Wei Yongjun Date: Wed, 11 Sep 2013 11:15:08 +0000 (+0800) Subject: spi: fix return value check in dspi_probe() X-Git-Tag: v3.12-rc5~22^2~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=272bfbd54f29b9361b09dbd6b25ccbd1a30163f1;p=pandora-kernel.git spi: fix return value check in dspi_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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed