diff options
author | Devendra Naga <develkernel412222@gmail.com> | 2012-07-29 13:56:38 +0545 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-08-07 14:20:06 +0200 |
commit | f4b49dee1ac0ae0660ef697fdab789dc92f59c6f (patch) | |
tree | ea8fecec1fd70dd3b3cdcaa0ef78a3d61e5ffe25 /drivers/pinctrl | |
parent | 606b64ea666dc45675c5ecce6f73022355172d78 (diff) |
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.c | 1 |
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; } |