]> git.baikalelectronics.ru Git - kernel.git/commit
spi: fix return value check in dspi_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 11 Sep 2013 11:15:08 +0000 (19:15 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 12 Sep 2013 09:53:16 +0000 (10:53 +0100)
commit7a7ea8b7b069bdcf1e2307d1225a6f8ce1c296ba
tree0dc963ec4b2bfdae84d0c5b9e93a0f6f7cdf9a92
parent39b1c913f00498c445b75d831f129527d0360fd5
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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-fsl-dspi.c