]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: freescale: imx: Use 'devm_of_iomap()' to avoid a resource leak in case of...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 2 Jun 2020 20:06:26 +0000 (22:06 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Jun 2020 12:35:41 +0000 (14:35 +0200)
commitb2e4f33507c08afec03f82032bb023c0469330d2
tree2ff5286a10c6b634790f834d6b5949e84d22ac63
parentb284f3b9eff7fda6713acd4f465265213bcc3a2f
pinctrl: freescale: imx: Use 'devm_of_iomap()' to avoid a resource leak in case of error in 'imx_pinctrl_probe()'

Use 'devm_of_iomap()' instead 'of_iomap()' to avoid a resource leak in
case of error.

Update the error handling code accordingly.

Fixes: 15cb0df77b4c ("pinctrl: freescale: imx: add shared input select reg support")
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200602200626.677981-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx.c