summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-u300.c
diff options
context:
space:
mode:
authorDong Aisheng <dong.aisheng@linaro.org>2012-05-23 21:22:40 +0800
committerLinus Walleij <linus.walleij@linaro.org>2012-07-03 21:51:07 +0200
commit5d589b092ab212bbcc27828167e1c036e7fc77d2 (patch)
treed3c9dcc8ae1f647d912179b4bfd98e27bbdb801a /drivers/pinctrl/pinctrl-u300.c
parentda9aecb02d8763ef17130dfd7c678747ad84b070 (diff)
downloadop-kernel-dev-5d589b092ab212bbcc27828167e1c036e7fc77d2.zip
op-kernel-dev-5d589b092ab212bbcc27828167e1c036e7fc77d2.tar.gz
pinctrl: remove pinctrl_remove_gpio_range
The gpio ranges will be automatically removed when the pinctrl driver is unregistered. Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-u300.c')
-rw-r--r--drivers/pinctrl/pinctrl-u300.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-u300.c b/drivers/pinctrl/pinctrl-u300.c
index 6cd697a..5f43f9a 100644
--- a/drivers/pinctrl/pinctrl-u300.c
+++ b/drivers/pinctrl/pinctrl-u300.c
@@ -1175,8 +1175,6 @@ static int __devexit u300_pmx_remove(struct platform_device *pdev)
struct u300_pmx *upmx = platform_get_drvdata(pdev);
int i;
- for (i = 0; i < ARRAY_SIZE(u300_gpio_ranges); i++)
- pinctrl_remove_gpio_range(upmx->pctl, &u300_gpio_ranges[i]);
pinctrl_unregister(upmx->pctl);
iounmap(upmx->virtbase);
release_mem_region(upmx->phybase, upmx->physize);
OpenPOWER on IntegriCloud