diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-06-16 23:15:37 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-07-03 21:51:07 +0200 |
commit | 5a511cd33f55e78de7b26eec16874535446bd6c0 (patch) | |
tree | 75c7cef1f1481578c1a2d5083f9ac4e99a3351ae /drivers/pinctrl | |
parent | 6887a4131da3adaab011613776d865f4bcfb5678 (diff) | |
download | blackbird-op-linux-5a511cd33f55e78de7b26eec16874535446bd6c0.tar.gz blackbird-op-linux-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')
-rw-r--r-- | drivers/pinctrl/pinctrl-u300.c | 1 |
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; } |