projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6887a41
)
pinctrl/pinctrl-u300: remove devm_kfree at driver unload
author
Devendra Naga
<devendra.aaru@gmail.com>
Sat, 16 Jun 2012 17:45:37 +0000
(23:15 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 3 Jul 2012 19:51:07 +0000
(21:51 +0200)
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>
drivers/pinctrl/pinctrl-u300.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-u300.c
b/drivers/pinctrl/pinctrl-u300.c
index
05d0299
..
13e7a3e
100644
(file)
--- 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;
}