1
0
Fork 0
alistair23-linux/drivers/pinctrl/freescale
Christophe JAILLET e585a8b540 pinctrl: freescale: imx: Fix an error handling path in 'imx_pinctrl_probe()'
[ Upstream commit 11d8da5cab ]

'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: a51c158bf0 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-24 17:50:38 +02:00
..
Kconfig
Makefile
pinctrl-imx.c pinctrl: freescale: imx: Fix an error handling path in 'imx_pinctrl_probe()' 2020-06-24 17:50:38 +02:00
pinctrl-imx.h
pinctrl-imx1-core.c
pinctrl-imx1.c
pinctrl-imx1.h
pinctrl-imx6dl.c
pinctrl-imx6q.c
pinctrl-imx6sl.c
pinctrl-imx6sll.c
pinctrl-imx6sx.c
pinctrl-imx6ul.c
pinctrl-imx7d.c
pinctrl-imx7ulp.c
pinctrl-imx8mm.c
pinctrl-imx8mn.c
pinctrl-imx8mq.c
pinctrl-imx8qm.c
pinctrl-imx8qxp.c
pinctrl-imx21.c
pinctrl-imx23.c
pinctrl-imx25.c
pinctrl-imx27.c
pinctrl-imx28.c
pinctrl-imx35.c
pinctrl-imx50.c
pinctrl-imx51.c
pinctrl-imx53.c
pinctrl-mxs.c
pinctrl-mxs.h
pinctrl-scu.c
pinctrl-vf610.c