diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-06-16 13:45:37 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-07-03 15:51:07 -0400 |
commit | 5a511cd33f55e78de7b26eec16874535446bd6c0 (patch) | |
tree | 75c7cef1f1481578c1a2d5083f9ac4e99a3351ae | |
parent | 6887a4131da3adaab011613776d865f4bcfb5678 (diff) |
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>
-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) | |||
1183 | iounmap(upmx->virtbase); | 1183 | iounmap(upmx->virtbase); |
1184 | release_mem_region(upmx->phybase, upmx->physize); | 1184 | release_mem_region(upmx->phybase, upmx->physize); |
1185 | platform_set_drvdata(pdev, NULL); | 1185 | platform_set_drvdata(pdev, NULL); |
1186 | devm_kfree(&pdev->dev, upmx); | ||
1187 | 1186 | ||
1188 | return 0; | 1187 | return 0; |
1189 | } | 1188 | } |