Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: d166a73 ("spi: fspi: dynamically alloc AHB memory") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/20200312113154.GC20562@mwanda Signed-off-by: Mark Brown <[email protected]>
- Loading branch information