]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: freescale: imx: Fix an error handling path in 'imx_pinctrl_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 30 May 2020 20:49:55 +0000 (22:49 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Jun 2020 12:34:21 +0000 (14:34 +0200)
commitc837c4dc6bb1ab5bd8c1990d9e6bc8a9a59eb0a0
tree39b3f1ddf928ccf27c391812996ee6433807c894
parent11c716f11cd578647fbd7870bea364f6e7b43c90
pinctrl: freescale: imx: Fix an error handling path in 'imx_pinctrl_probe()'

'pinctrl_unregister()' should not be called to undo
'devm_pinctrl_register_and_init()', it is already handled by the framework.

This simplifies the error handling paths of the probe function.
The 'imx_free_resources()' can be removed as well.

Fixes: 2d7ded35f4fb ("pinctrl: imx: use radix trees for groups and functions")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/20200530204955.588962-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx.c