summaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl/imx-hdmi.c
diff options
context:
space:
mode:
authorYe Guojin <ye.guojin@zte.com.cn>2021-11-10 00:29:10 +0000
committerMark Brown <broonie@kernel.org>2021-11-26 13:24:28 +0000
commitf670b274f7f6f4b2722d7f08d0fddf606a727e92 (patch)
tree53806fdb69ce5e5c4b2fe8a6fbf9c296bc8cf11a /sound/soc/fsl/imx-hdmi.c
parent2b9c8d2b3c89708d53b6124dc49c212dc5341840 (diff)
downloadlinux-f670b274f7f6f4b2722d7f08d0fddf606a727e92.tar.bz2
ASoC: imx-hdmi: add put_device() after of_find_device_by_node()
This was found by coccicheck: ./sound/soc/fsl/imx-hdmi.c,209,1-7,ERROR missing put_device; call of_find_device_by_node on line 119, but without a corresponding object release within this function. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn> Link: https://lore.kernel.org/r/20211110002910.134915-1-ye.guojin@zte.com.cn Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/imx-hdmi.c')
-rw-r--r--sound/soc/fsl/imx-hdmi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/fsl/imx-hdmi.c b/sound/soc/fsl/imx-hdmi.c
index f10359a28800..929f69b758af 100644
--- a/sound/soc/fsl/imx-hdmi.c
+++ b/sound/soc/fsl/imx-hdmi.c
@@ -145,6 +145,8 @@ static int imx_hdmi_probe(struct platform_device *pdev)
data->dai.capture_only = false;
data->dai.init = imx_hdmi_init;
+ put_device(&cpu_pdev->dev);
+
if (of_node_name_eq(cpu_np, "sai")) {
data->cpu_priv.sysclk_id[1] = FSL_SAI_CLK_MAST1;
data->cpu_priv.sysclk_id[0] = FSL_SAI_CLK_MAST1;