diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-03-12 14:31:54 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-03-12 15:09:58 +0000 |
commit | 1a421ebab6bb5bf65001743ba9fef48e94fb345a (patch) | |
tree | c3481daf1b88da5db21a399128dc6184b825631a /drivers/spi/spi-meson-spicc.c | |
parent | b562b304efc0922d1ef9e7d5b9d333db7497f81a (diff) | |
download | linux-stable-1a421ebab6bb5bf65001743ba9fef48e94fb345a.tar.gz linux-stable-1a421ebab6bb5bf65001743ba9fef48e94fb345a.tar.bz2 linux-stable-1a421ebab6bb5bf65001743ba9fef48e94fb345a.zip |
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>
Diffstat (limited to 'drivers/spi/spi-meson-spicc.c')
0 files changed, 0 insertions, 0 deletions