Unverified Commit 7dfc9bdd authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown
Browse files

spi: stm32-ospi: Fix an IS_ERR() vs NULL bug in stm32_ospi_get_resources()



The devm_ioremap() function returns NULL on error, it doesn't return
error pointers.  Fix the check to match.

Fixes: 79b8a705 ("spi: stm32: Add OSPI driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarPatrice Chotard <patrice.chotard@foss.st.com>
Link: https://patch.msgid.link/bc4c9123-df43-4616-962f-765801d30b4c@stanley.mountain


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5fac6c27
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment