summaryrefslogtreecommitdiff
path: root/sound/soc/mediatek/mt8173/mt8173-rt5650.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@google.com>2021-12-24 14:47:16 +0800
committerMark Brown <broonie@kernel.org>2021-12-24 14:06:52 +0000
commit493433785df0075afc0c106ab65f10a605d0b35d (patch)
tree0c2de9abebc7bd44d158b6a24f603a1fd719a268 /sound/soc/mediatek/mt8173/mt8173-rt5650.c
parent2f15d3cebd45f773a2e27cce84ca851164dd5acd (diff)
ASoC: mediatek: mt8173: fix device_node leak
Fixes the device_node leak. Signed-off-by: Tzung-Bi Shih <tzungbi@google.com> Link: https://lore.kernel.org/r/20211224064719.2031210-2-tzungbi@google.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/mt8173/mt8173-rt5650.c')
-rw-r--r--sound/soc/mediatek/mt8173/mt8173-rt5650.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/mediatek/mt8173/mt8173-rt5650.c b/sound/soc/mediatek/mt8173/mt8173-rt5650.c
index 9b933cce0b20..16ddf9f8bbcb 100644
--- a/sound/soc/mediatek/mt8173/mt8173-rt5650.c
+++ b/sound/soc/mediatek/mt8173/mt8173-rt5650.c
@@ -323,6 +323,8 @@ static int mt8173_rt5650_dev_probe(struct platform_device *pdev)
if (ret)
dev_err(&pdev->dev, "%s snd_soc_register_card fail %d\n",
__func__, ret);
+
+ of_node_put(platform_node);
return ret;
}