pinctrl: meson: 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>
Wed, 20 Apr 2016 22:02:34 +0000 (00:02 +0200)
Use devm_pinctrl_register() for pin control registration.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Cc: Carlo Caione <carlo@endlessm.com>
Cc: Beniamino Galvani <b.galvani@gmail.com>
Cc: Lee Jones <lee.jones@linaro.org>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/meson/pinctrl-meson.c

index 5bcbd3ee758cca8c4a393e5ff3dca75f6eb40d38..e61011284f2909202ab62bc78d2d711d4d90e865 100644 (file)
@@ -713,7 +713,7 @@ static int meson_pinctrl_probe(struct platform_device *pdev)
        pc->desc.pins           = pc->data->pins;
        pc->desc.npins          = pc->data->num_pins;
 
-       pc->pcdev = pinctrl_register(&pc->desc, pc->dev, pc);
+       pc->pcdev = devm_pinctrl_register(pc->dev, &pc->desc, pc);
        if (IS_ERR(pc->pcdev)) {
                dev_err(pc->dev, "can't register pinctrl device");
                return PTR_ERR(pc->pcdev);