|
@@ -1724,7 +1724,7 @@ static int st_pctl_probe(struct platform_device *pdev)
|
|
|
pctl_desc->confops = &st_confops;
|
|
|
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)) {
|
|
|
dev_err(&pdev->dev, "Failed pinctrl registration\n");
|
|
|
return PTR_ERR(info->pctl);
|