aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@google.com>2021-12-24 14:47:17 +0800
committerMark Brown <broonie@kernel.org>2021-12-24 14:06:53 +0000
commitcb006006fe6221f092fadaffd3f219288304c9ad (patch)
tree898e8b083828b6274ced54818ceb4f36629b0c89 /sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
parentASoC: mediatek: mt8173: fix device_node leak (diff)
downloadwireguard-linux-cb006006fe6221f092fadaffd3f219288304c9ad.tar.xz
wireguard-linux-cb006006fe6221f092fadaffd3f219288304c9ad.zip
ASoC: mediatek: mt8183: 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-3-tzungbi@google.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c')
-rw-r--r--sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
index f8a72a5102ad..ca893feab7eb 100644
--- a/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
+++ b/sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c
@@ -781,7 +781,11 @@ static int mt8183_da7219_max98357_dev_probe(struct platform_device *pdev)
return ret;
}
- return devm_snd_soc_register_card(&pdev->dev, card);
+ ret = devm_snd_soc_register_card(&pdev->dev, card);
+
+ of_node_put(platform_node);
+ of_node_put(hdmi_codec);
+ return ret;
}
#ifdef CONFIG_OF