pinctrl: npcm7xx: Add missing check for ioremap
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 7 Jun 2023 09:58:29 +0000 (17:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:21:37 +0000 (16:21 +0200)
commitc32afc7e864c9a3fe910b5da058719ad686efeff
tree68b7d5ae04d1dee0fe2d9c5445b5a05dea6f59b9
parentfc45a8be5e5289439ac9b0b3795d709baff04bf1
pinctrl: npcm7xx: Add missing check for ioremap

[ Upstream commit ad64639417161e90b30dda00486570eb150aeee5 ]

Add check for ioremap() and return the error if it fails in order to
guarantee the success of ioremap().

Fixes: 3b588e43ee5c ("pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20230607095829.1345-1-jiasheng@iscas.ac.cn
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c