power: reset: at91-reset: check properly the return value of devm_of_iomap
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 30 Sep 2021 10:09:28 +0000 (13:09 +0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 2 Oct 2021 15:40:34 +0000 (17:40 +0200)
commitf558c8072c3461b65c12c0068b108f78cebc8246
treebf117e0ff7e66fc22b9387a0d37e2f973173a31d
parent73d59c9263a0fbcf8f769daea9c1fe33ae38c9e8
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: bd3127733f2c ("power: reset: at91-reset: use devm_of_iomap")
Reported-by: Cristian Birsan <cristian.birsan@microchip.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/at91-reset.c