]> git.ipfire.org Git - thirdparty/linux.git/commit
spi: stm32-ospi: Fix NULL vs IS_ERR() bug in stm32_ospi_get_resources()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 15 Jul 2025 23:01:39 +0000 (18:01 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 16 Jul 2025 15:35:18 +0000 (16:35 +0100)
commit951a6d8d41289b86a564ee5563ededa702b62b1b
treed8c111a8e632f14a79cb12717f25bfd35eb319d4
parentd929cc75e9791def049a90998aaab8934196131c
spi: stm32-ospi: Fix NULL vs IS_ERR() bug in stm32_ospi_get_resources()

This code was changed from using devm_ioremap() which returns NULL to
using devm_ioremap_resource() which returns error pointers.  Update
the error checking to match.

Fixes: defe01abfb7f ("spi: stm32-ospi: Use of_reserved_mem_region_to_resource() for "memory-region"")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/fb2a26a2-119b-4b5a-8d44-b29e2c736081@sabinyo.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32-ospi.c