commit | 1a421ebab6bb5bf65001743ba9fef48e94fb345a | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Mar 12 14:31:54 2020 +0300 |
committer | Mark Brown <broonie@kernel.org> | Thu Mar 12 15:09:58 2020 +0000 |
tree | c3481daf1b88da5db21a399128dc6184b825631a | |
parent | b562b304efc0922d1ef9e7d5b9d333db7497f81a [diff] |
spi: spi-nxp-fspi: Fix a NULL vs IS_ERR() check in probe The platform_get_resource_byname() function returns NULL on error, it doesn't return error pointers. Fixes: d166a73503ef ("spi: fspi: dynamically alloc AHB memory") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20200312113154.GC20562@mwanda Signed-off-by: Mark Brown <broonie@kernel.org>