summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorDevendra Naga <develkernel412222@gmail.com>2012-07-29 10:11:38 +0200
committerLinus Walleij <linus.walleij@linaro.org>2012-08-07 14:20:06 +0200
commitf4b49dee1ac0ae0660ef697fdab789dc92f59c6f (patch)
treeea8fecec1fd70dd3b3cdcaa0ef78a3d61e5ffe25 /drivers/pinctrl
parentpinctrl/nomadik: fix hsi function group list (diff)
downloadlinux-f4b49dee1ac0ae0660ef697fdab789dc92f59c6f.tar.xz
linux-f4b49dee1ac0ae0660ef697fdab789dc92f59c6f.zip
pinctrl-sirf: remove devm_kfree at error path
the pointers that are allocated with devm_kzalloc will be automatically freed, at unload time. Signed-off-by: Devendra Naga <develkernel412222@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/pinctrl-sirf.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-sirf.c b/drivers/pinctrl/pinctrl-sirf.c
index 2aae8a8978e9..7fca6ce5952b 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;
}