| commit | 0cc08c8130ac8f74419f99fe707dc193b7f79d86 | [log] [tgz] |
|---|---|---|
| author | Dan Carpenter <dan.carpenter@linaro.org> | Fri Oct 17 19:04:34 2025 +0300 |
| committer | Mark Brown <broonie@kernel.org> | Fri Oct 17 17:21:03 2025 +0100 |
| tree | 2f2455d6745d33534c800ca952cfb3dc1446eb23 | |
| parent | d77daa49085b067137d0adbe3263f75a7ee13a1b [diff] |
spi: aspeed: Fix an IS_ERR() vs NULL bug in probe()
The platform_get_resource() function doesn't return error pointers, it
returns NULL on error. Update the error checking to match.
Fixes: 64d87ccfae33 ("spi: aspeed: Only map necessary address window region")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aPJpEnfK31pHz8_w@stanley.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>