]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-fsl-qspi: Fix return value check of devm_ioremap() in probe
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 22 Apr 2020 01:45:43 +0000 (01:45 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 22 Apr 2020 13:07:46 +0000 (14:07 +0100)
commit20e7262099c98043c4f5302f51809efc39e528a5
tree96d0caafc6e1330d0407a699c0bf347caa4aebf1
parent1a7d426f3e52728f6689e419f4e7aa358cda3c18
spi: spi-fsl-qspi: Fix return value check of devm_ioremap() in 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.

Fixes: 7c59c267ec18 ("spi: spi-fsl-qspi: Reduce devm_ioremap size to 4 times AHB buffer size")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Acked-by: Han Xu <han.xu@nxp.com>
Link: https://lore.kernel.org/r/20200422014543.111070-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-qspi.c