]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit896548a53e708efecc8f48ad82b2976895f09423
tree3f748f10a60f409f5317522fc42559de737fe110
parent4740712934c0f5e0732433ba595225f5a176b2b1
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