soc: mediatek: mtk-svs: Use devm variant for dev_pm_opp_of_add_table()
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 26 Jul 2022 14:16:52 +0000 (16:16 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Thu, 25 Aug 2022 13:27:57 +0000 (15:27 +0200)
commit02aace9be3cf393eed8bf36cc1edee6818fb5e1d
treee4095764c6a496b166b461609e237481f23431cb
parent1cd80c06784dd55dca97ce10c5f97bcaa3a417ef
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: 681a02e95000 ("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>
drivers/soc/mediatek/mtk-svs.c