]> git.hungrycats.org Git - linux/commit
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>
Tue, 11 Jul 2023 17:39:47 +0000 (19:39 +0200)
commit952fd6de18d6c8a00471c8d6b74088a3b7c6c052
treeb55d4d7a57aa4e0f68c3aa531020db9b9fa2e4b2
parenta6fad96eccf8f6f8ae24f4a9b022f090a9b33d15
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