diff options
author | Tzung-Bi Shih <tzungbi@google.com> | 2021-12-24 07:47:16 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-12-24 15:06:52 +0100 |
commit | 493433785df0075afc0c106ab65f10a605d0b35d (patch) | |
tree | 0c2de9abebc7bd44d158b6a24f603a1fd719a268 /sound/soc/mediatek/mt8173/mt8173-rt5650.c | |
parent | ASoC: qcom: Parse "pin-switches" and "widgets" from DT (diff) | |
download | linux-493433785df0075afc0c106ab65f10a605d0b35d.tar.xz linux-493433785df0075afc0c106ab65f10a605d0b35d.zip |
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.c | 2 |
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; } |