diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-05-30 22:49:55 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-24 17:50:38 +0200 |
commit | e585a8b54046b98f862d45e075ca6d117ee78cc9 (patch) | |
tree | dc09757e73aa563c6944d3f3a9f2d22153925c5d /drivers/pinctrl/pinctrl-bm1880.c | |
parent | d184d62ceb197f7f0e23fb399735f9a3b2241d82 (diff) |
pinctrl: freescale: imx: Fix an error handling path in 'imx_pinctrl_probe()'
[ Upstream commit 11d8da5cabf7c6c3263ba2cd9c00260395867048 ]
'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: a51c158bf0f7 ("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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-bm1880.c')
0 files changed, 0 insertions, 0 deletions