]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl: lantiq: Use devm_pinctrl_register() for pinctrl registration
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 24 Feb 2016 09:14:07 +0000 (14:44 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Apr 2016 07:23:23 +0000 (09:23 +0200)
Use devm_pinctrl_register() for pin control registration.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-lantiq.c

index fc38a85405444316d0f62904be77734f44c35318..a4d64742460090e9ef42f9989ff2c6eff400159e 100644 (file)
@@ -336,7 +336,7 @@ int ltq_pinctrl_register(struct platform_device *pdev,
        desc->pmxops = &ltq_pmx_ops;
        info->dev = &pdev->dev;
 
-       info->pctrl = pinctrl_register(desc, &pdev->dev, info);
+       info->pctrl = devm_pinctrl_register(&pdev->dev, desc, info);
        if (IS_ERR(info->pctrl)) {
                dev_err(&pdev->dev, "failed to register LTQ pinmux driver\n");
                return PTR_ERR(info->pctrl);