summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-tb10x.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2016-02-24 14:44:07 +0530
committerLinus Walleij <linus.walleij@linaro.org>2016-04-21 09:23:25 +0200
commitc3a6d9e0a37df77079f55c48901487fa9e731647 (patch)
tree41d833da1519737bfe4be664adacadb0576670d7 /drivers/pinctrl/pinctrl-tb10x.c
parente8e2cb234f55355a75a48eab6ef4a26dfe05558d (diff)
downloadtalos-obmc-linux-c3a6d9e0a37df77079f55c48901487fa9e731647.tar.gz
talos-obmc-linux-c3a6d9e0a37df77079f55c48901487fa9e731647.zip
pinctrl: tb10x: Use devm_pinctrl_register() for pinctrl registration
Use devm_pinctrl_register() for pin control registration. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-tb10x.c')
-rw-r--r--drivers/pinctrl/pinctrl-tb10x.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-tb10x.c b/drivers/pinctrl/pinctrl-tb10x.c
index 620af57f10ad..edfba506e958 100644
--- a/drivers/pinctrl/pinctrl-tb10x.c
+++ b/drivers/pinctrl/pinctrl-tb10x.c
@@ -806,7 +806,7 @@ static int tb10x_pinctrl_probe(struct platform_device *pdev)
}
}
- state->pctl = pinctrl_register(&tb10x_pindesc, dev, state);
+ state->pctl = devm_pinctrl_register(dev, &tb10x_pindesc, state);
if (IS_ERR(state->pctl)) {
dev_err(dev, "could not register TB10x pin driver\n");
ret = PTR_ERR(state->pctl);
@@ -824,7 +824,6 @@ static int tb10x_pinctrl_remove(struct platform_device *pdev)
{
struct tb10x_pinctrl *state = platform_get_drvdata(pdev);
- pinctrl_unregister(state->pctl);
mutex_destroy(&state->mutex);
return 0;
OpenPOWER on IntegriCloud