ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe
authorMiaoqian Lin <linmq006@gmail.com>
Mon, 7 Mar 2022 12:45:39 +0000 (12:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:20 +0000 (14:23 +0200)
commita0bc36b247dcf4d21bf820bfc4bcbaf7f6cf19b5
tree07cc38030c39cd5bb20398b689d56558b6d3ae31
parent9dd2fd7a1f84c947561af29424c5ddcecfcf2cbe
ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe

[ Upstream commit f590797fa3c1bccdd19e55441592a23b46aef449 ]

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: 531f67e41dcd ("ASoC: at91sam9g20ek-wm8731: convert to dt support")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20220307124539.1743-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/atmel/sam9g20_wm8731.c