spi: orion: Fix return value check in orion_spi_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 13 Jun 2016 14:32:23 +0000 (14:32 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jun 2016 15:36:40 +0000 (16:36 +0100)
commit57c624ae1c0aa631f11768992a74998c531a7fee
tree28b16d9afdbe3f4d0d95a85bf3603abba0ac2e57
parentb3c195b3a75b0aff9ede850ba2208cd1f40a702b
spi: orion: Fix return value check in orion_spi_probe()

In case of error, the function devm_ioremap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should
be replaced with NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-orion.c