Skip to content

Commit

Permalink
pinctrl: exynos5440: Use devm_pinctrl_register() for pinctrl registra…
Browse files Browse the repository at this point in the history
…tion

Use devm_pinctrl_register() for pin control registration.

Signed-off-by: Laxman Dewangan <[email protected]>
Cc: Tomasz Figa <[email protected]>
Cc: Kukjin Kim <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
ldewangan authored and linusw committed Apr 20, 2016
1 parent 6d33ee7 commit 40011bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/samsung/pinctrl-exynos5440.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ static int exynos5440_pinctrl_register(struct platform_device *pdev,
if (ret)
return ret;

pctl_dev = pinctrl_register(ctrldesc, &pdev->dev, priv);
pctl_dev = devm_pinctrl_register(&pdev->dev, ctrldesc, priv);
if (IS_ERR(pctl_dev)) {
dev_err(&pdev->dev, "could not register pinctrl driver\n");
return PTR_ERR(pctl_dev);
Expand Down

0 comments on commit 40011bf

Please sign in to comment.