mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 06:23:51 -04:00
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>
This commit is contained in:
committed by
Linus Walleij
parent
606b64ea66
commit
f4b49dee1a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user