summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-lantiq.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2016-02-24 09:14:07 (GMT)
committerLinus Walleij <linus.walleij@linaro.org>2016-04-21 07:23:23 (GMT)
commit280132d19841731964ac33a2d1b5742e1921f500 (patch)
tree3e9aff3898220d055da385cf103ff3a358b10b12 /drivers/pinctrl/pinctrl-lantiq.c
parent8f91ed4780d4870c7e442ae37c402864e9370632 (diff)
downloadlinux-280132d19841731964ac33a2d1b5742e1921f500.tar.xz
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>
Diffstat (limited to 'drivers/pinctrl/pinctrl-lantiq.c')
-rw-r--r--drivers/pinctrl/pinctrl-lantiq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-lantiq.c b/drivers/pinctrl/pinctrl-lantiq.c
index fc38a85..a4d6474 100644
--- a/drivers/pinctrl/pinctrl-lantiq.c
+++ b/drivers/pinctrl/pinctrl-lantiq.c
@@ -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);