mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-12 15:44:01 +08:00
pinctrl: nomadic: Use devm_pinctrl_register() for pinctrl registration
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Cc: Alessandro Rubini <rubini@unipv.it> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
699097a9b8
commit
0ee60110ca
drivers/pinctrl/nomadik
@ -1212,7 +1212,8 @@ static int abx500_gpio_probe(struct platform_device *pdev)
|
||||
|
||||
abx500_pinctrl_desc.pins = pct->soc->pins;
|
||||
abx500_pinctrl_desc.npins = pct->soc->npins;
|
||||
pct->pctldev = pinctrl_register(&abx500_pinctrl_desc, &pdev->dev, pct);
|
||||
pct->pctldev = devm_pinctrl_register(&pdev->dev, &abx500_pinctrl_desc,
|
||||
pct);
|
||||
if (IS_ERR(pct->pctldev)) {
|
||||
dev_err(&pdev->dev,
|
||||
"could not register abx500 pinctrl driver\n");
|
||||
|
@ -2044,7 +2044,7 @@ static int nmk_pinctrl_probe(struct platform_device *pdev)
|
||||
nmk_pinctrl_desc.npins = npct->soc->npins;
|
||||
npct->dev = &pdev->dev;
|
||||
|
||||
npct->pctl = pinctrl_register(&nmk_pinctrl_desc, &pdev->dev, npct);
|
||||
npct->pctl = devm_pinctrl_register(&pdev->dev, &nmk_pinctrl_desc, npct);
|
||||
if (IS_ERR(npct->pctl)) {
|
||||
dev_err(&pdev->dev, "could not register Nomadik pinctrl driver\n");
|
||||
return PTR_ERR(npct->pctl);
|
||||
|
Loading…
Reference in New Issue
Block a user