pinctrl-sirf: remove devm_kfree at error path
authorDevendra Naga <develkernel412222@gmail.com>
Sun, 29 Jul 2012 08:11:38 +0000 (13:56 +0545)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Aug 2012 12:20:06 +0000 (14:20 +0200)
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>
drivers/pinctrl/pinctrl-sirf.c

index 2aae8a8978e99b4224ef0f0baff84b5745e913dd..7fca6ce5952b94a0f398bd1bca35795e20ba62e0 100644 (file)
@@ -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;
 }