mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
pinctrl: lantiq: Use devm_pinctrl_register() for pinctrl registration
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>
This commit is contained in:
parent
8f91ed4780
commit
280132d198
@ -336,7 +336,7 @@ int ltq_pinctrl_register(struct platform_device *pdev,
|
||||
desc->pmxops = <q_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);
|
||||
|
Loading…
Reference in New Issue
Block a user