summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-u300.c
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-06-16 23:15:37 +0530
committerLinus Walleij <linus.walleij@linaro.org>2012-07-03 21:51:07 +0200
commit5a511cd33f55e78de7b26eec16874535446bd6c0 (patch)
tree75c7cef1f1481578c1a2d5083f9ac4e99a3351ae /drivers/pinctrl/pinctrl-u300.c
parent6887a4131da3adaab011613776d865f4bcfb5678 (diff)
downloadlinux-starfive-5a511cd33f55e78de7b26eec16874535446bd6c0.tar.gz
linux-starfive-5a511cd33f55e78de7b26eec16874535446bd6c0.tar.bz2
linux-starfive-5a511cd33f55e78de7b26eec16874535446bd6c0.zip
pinctrl/pinctrl-u300: remove devm_kfree at driver unload
the memory allocated by devm_kzalloc is automatically freed at the driver detach side, so no neeed of calling devm_kfree Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-u300.c')
-rw-r--r--drivers/pinctrl/pinctrl-u300.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-u300.c b/drivers/pinctrl/pinctrl-u300.c
index 05d029911be6..13e7a3eb82e3 100644
--- a/drivers/pinctrl/pinctrl-u300.c
+++ b/drivers/pinctrl/pinctrl-u300.c
@@ -1183,7 +1183,6 @@ static int __devexit u300_pmx_remove(struct platform_device *pdev)
iounmap(upmx->virtbase);
release_mem_region(upmx->phybase, upmx->physize);
platform_set_drvdata(pdev, NULL);
- devm_kfree(&pdev->dev, upmx);
return 0;
}