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:
Родитель
606b64ea66
Коммит
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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче