ASoC: mediatek: mt8195: move of_node_put to remove function
authorTrevor Wu <trevor.wu@mediatek.com>
Fri, 1 Oct 2021 03:16:01 +0000 (11:16 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 1 Oct 2021 18:35:01 +0000 (19:35 +0100)
commitbd8bec1408ab2336939bd69d93897bf19d0325ed
tree3f748f10a60f409f5317522fc42559de737fe110
parent9c892547624ff277546a9d4fede3d95259e6faea
ASoC: mediatek: mt8195: move of_node_put to remove function

platforms->of_node and codes->of_node are assigned in probe function,
and of_node_put is called at the end of probe function, because of_node
seems to be not used after probe functon

In this patch, of_node_put is moved to platform remove function in case
of_node is used at any occasions after probe function in the future.

Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
Link: https://lore.kernel.org/r/20211001031601.3953-1-trevor.wu@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c