pinctrl: npcm7xx: Add missing check for ioremap
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Wed, 7 Jun 2023 09:58:29 +0000 (17:58 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 9 Jun 2023 07:42:52 +0000 (09:42 +0200)
commitad64639417161e90b30dda00486570eb150aeee5
tree92b42e0d42861256cdcf32b3d376d81bd5c54d3b
parent73f8ce7f961afcb3be49352efeb7c26cc1c00cc4
pinctrl: npcm7xx: Add missing check for ioremap

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>
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c