Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: e55e025d1687 ("pinctrl: imxl: Use devm_pinctrl_register() for pinctrl registration")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200530201952.585798-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Christophe JAILLET and committed by
Linus Walleij
9eb72832 920fecc1

-1
-1
drivers/pinctrl/freescale/pinctrl-imx1-core.c
··· 638 638 639 639 ret = of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev); 640 640 if (ret) { 641 - pinctrl_unregister(ipctl->pctl); 642 641 dev_err(&pdev->dev, "Failed to populate subdevices\n"); 643 642 return ret; 644 643 }