ASoC: mediatek: mt8195: release device_node after snd_soc_register_card
authorTzung-Bi Shih <tzungbi@google.com>
Fri, 24 Dec 2021 06:47:19 +0000 (14:47 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 24 Dec 2021 14:06:56 +0000 (14:06 +0000)
commit082482a5022780d42180a394fe6843e71fe963d8
tree981a845443f6c1442298ba2bd6d0d660b304005c
parentdb3f5abe68ea5ea39d84e6af4f0f2ce5d5e2daf4
ASoC: mediatek: mt8195: release device_node after snd_soc_register_card

Device nodes can be released after components have bound.

Shortens the lifecycle of the device nodes.  Releases the reference
counts after snd_soc_register_card.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20211224064719.2031210-5-tzungbi@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1011-rt5682.c
sound/soc/mediatek/mt8195/mt8195-mt6359-rt1019-rt5682.c