From: Devendra Naga Date: Sun, 29 Jul 2012 08:11:38 +0000 (+0545) Subject: pinctrl-sirf: remove devm_kfree at error path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4b49dee1ac0ae0660ef697fdab789dc92f59c6f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Linus Walleij --- 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; }