pinctrl: meson: Use devm_pinctrl_register() for pinctrl registration
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>
This commit is contained in:
parent
03a3a5587e
commit
e649f7ec8c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue