summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-03-12 12:31:54 +0100
committerMark Brown <broonie@kernel.org>2020-03-12 16:09:58 +0100
commit1a421ebab6bb5bf65001743ba9fef48e94fb345a (patch)
treec3481daf1b88da5db21a399128dc6184b825631a /drivers/spi/spi.c
parentMerge tag 'mtk-mtd-spi-move' of https://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadlinux-1a421ebab6bb5bf65001743ba9fef48e94fb345a.tar.xz
linux-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.c')
0 files changed, 0 insertions, 0 deletions