mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
soc: mediatek: mtk-svs: Use devm variant for dev_pm_opp_of_add_table()
In error cases, this driver never calls dev_pm_opp_of_remove_table():
instead of doing that, simple switch to a devm variant, which will
automagically do that for us.
Fixes: 681a02e950
("soc: mediatek: SVS: introduce MTK SVS engine")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220726141653.177948-6-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
parent
1cd80c0678
commit
02aace9be3
@ -1586,7 +1586,7 @@ static int svs_bank_resource_setup(struct svs_platform *svsp)
|
||||
|
||||
dev_set_drvdata(svsb->dev, svsp);
|
||||
|
||||
ret = dev_pm_opp_of_add_table(svsb->opp_dev);
|
||||
ret = devm_pm_opp_of_add_table(svsb->opp_dev);
|
||||
if (ret) {
|
||||
dev_err(svsb->dev, "add opp table fail: %d\n", ret);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user