Commit e649f7ec authored by Laxman Dewangan's avatar Laxman Dewangan Committed by Linus Walleij

pinctrl: meson: Use devm_pinctrl_register() for pinctrl registration

Use devm_pinctrl_register() for pin control registration.
Signed-off-by: default avatarLaxman 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: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 03a3a558
...@@ -713,7 +713,7 @@ static int meson_pinctrl_probe(struct platform_device *pdev) ...@@ -713,7 +713,7 @@ static int meson_pinctrl_probe(struct platform_device *pdev)
pc->desc.pins = pc->data->pins; pc->desc.pins = pc->data->pins;
pc->desc.npins = pc->data->num_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)) { if (IS_ERR(pc->pcdev)) {
dev_err(pc->dev, "can't register pinctrl device"); dev_err(pc->dev, "can't register pinctrl device");
return PTR_ERR(pc->pcdev); return PTR_ERR(pc->pcdev);
......
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