Commit 9eb72832 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Linus Walleij

pinctrl: imxl: Fix an error handling path in 'imx1_pinctrl_core_probe()'

When 'pinctrl_register()' has been turned into 'devm_pinctrl_register()',
an error handling path has not been updated.

Axe a now unneeded 'pinctrl_unregister()'.

Fixes: e55e025d ("pinctrl: imxl: Use devm_pinctrl_register() for pinctrl registration")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200530201952.585798-1-christophe.jaillet@wanadoo.frSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 920fecc1
......@@ -638,7 +638,6 @@ int imx1_pinctrl_core_probe(struct platform_device *pdev,
ret = of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev);
if (ret) {
pinctrl_unregister(ipctl->pctl);
dev_err(&pdev->dev, "Failed to populate subdevices\n");
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment