* [PATCH] pinctrl-sirf: remove devm_kfree at error path
@ 2012-07-29 8:11 Devendra Naga
2012-08-07 12:21 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Devendra Naga @ 2012-07-29 8:11 UTC (permalink / raw)
To: linux-arm-kernel
the pointers that are allocated with devm_kzalloc will be automatically freed,
at unload time.
Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
---
drivers/pinctrl/pinctrl-sirf.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/pinctrl/pinctrl-sirf.c b/drivers/pinctrl/pinctrl-sirf.c
index 2aae8a8..7fca6ce 100644
--- a/drivers/pinctrl/pinctrl-sirf.c
+++ b/drivers/pinctrl/pinctrl-sirf.c
@@ -1217,7 +1217,6 @@ out_no_rsc_remap:
iounmap(spmx->gpio_virtbase);
out_no_gpio_remap:
platform_set_drvdata(pdev, NULL);
- devm_kfree(&pdev->dev, spmx);
return ret;
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] pinctrl-sirf: remove devm_kfree at error path
2012-07-29 8:11 [PATCH] pinctrl-sirf: remove devm_kfree at error path Devendra Naga
@ 2012-08-07 12:21 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2012-08-07 12:21 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, Jul 29, 2012 at 10:11 AM, Devendra Naga
<develkernel412222@gmail.com> wrote:
> the pointers that are allocated with devm_kzalloc will be automatically freed,
> at unload time.
>
> Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Applied, Barry if you don't like this, shout now :-)
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-07 12:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-29 8:11 [PATCH] pinctrl-sirf: remove devm_kfree at error path Devendra Naga
2012-08-07 12:21 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).