Skip to content
Commit f558c807 authored by Claudiu Beznea's avatar Claudiu Beznea Committed by Sebastian Reichel
Browse files

power: reset: at91-reset: check properly the return value of devm_of_iomap



devm_of_iomap() returns error code or valid pointer. Check its return
value with IS_ERR().

Fixes: bd312773 ("power: reset: at91-reset: use devm_of_iomap")
Reported-by: default avatarCristian Birsan <cristian.birsan@microchip.com>
Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 73d59c92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment