memory: stm32_omm: Fix NULL vs IS_ERR() check in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 9 May 2025 11:04:37 +0000 (14:04 +0300)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 12 May 2025 06:32:14 +0000 (08:32 +0200)
commit0169a24036848cf18205301673259bb6879eef97
treeb2db1a03f0ab596c5b77f6c97cf8ae9a105faa18
parentd44eeb20d9bedce11297a09628ba5dd39db236be
memory: stm32_omm: Fix NULL vs IS_ERR() check in probe()

The platform_get_resource_byname() function returns NULL on error.  It
doesn't return error pointers.  Update the check to match.

Fixes: 8181d061dcff ("memory: Add STM32 Octo Memory Manager driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/a1645f1eedaa9b2ae62ac07feed0552eea75bc46.1746781081.git.dan.carpenter@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/stm32_omm.c