Skip to content
Commit 62f4b33b authored by Dan Carpenter's avatar Dan Carpenter Committed by Sebastian Reichel
Browse files

power: reset: xgene-reboot: Fix a NULL vs IS_ERR() test



The devm_platform_ioremap_resource() function returns error points.  It
never returns NULL.  Update the check accordingly.

Fixes: 7ddfd33c ("power: reset: xgene-reboot: Use devm_platform_ioremap_resource() helper")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Acked-by: default avatarAndrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/fe1b90d0-7234-4e03-accc-69a119f6a7eb@moroto.mountain


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent a9b25489
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment