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

pinctrl: st: 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: Srinivas Kandagatla <srinivas.kandagatla@gmail.com>
Cc: Maxime Coquelin <maxime.coquelin@st.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: kernel@stlinux.com
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 0085a2b4
...@@ -1724,7 +1724,7 @@ static int st_pctl_probe(struct platform_device *pdev) ...@@ -1724,7 +1724,7 @@ static int st_pctl_probe(struct platform_device *pdev)
pctl_desc->confops = &st_confops; pctl_desc->confops = &st_confops;
pctl_desc->name = dev_name(&pdev->dev); pctl_desc->name = dev_name(&pdev->dev);
info->pctl = pinctrl_register(pctl_desc, &pdev->dev, info); info->pctl = devm_pinctrl_register(&pdev->dev, pctl_desc, info);
if (IS_ERR(info->pctl)) { if (IS_ERR(info->pctl)) {
dev_err(&pdev->dev, "Failed pinctrl registration\n"); dev_err(&pdev->dev, "Failed pinctrl registration\n");
return PTR_ERR(info->pctl); return PTR_ERR(info->pctl);
......
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