ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe
authorMiaoqian Lin <linmq006@gmail.com>
Mon, 4 Apr 2022 09:35:25 +0000 (09:35 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 5 Apr 2022 09:44:31 +0000 (10:44 +0100)
commit05654431a18fe24e5e46a375d98904134628a102
tree2750480644e40edb42ab473dec7a6137332df568
parent4f4e0454e226de3bf4efd7e7924d1edc571c52d5
ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe

This node pointer is returned by of_parse_phandle() with
refcount incremented in this function.
Calling of_node_put() to avoid the refcount leak.

Fixes: 8625c1dbd876 ("ASoC: mediatek: Add mt2701-wm8960 machine driver")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220404093526.30004-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt2701/mt2701-wm8960.c