]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: eureka-tlv320: Hold reference returned from of_find_xxx API
authorLiang He <windhl@126.com>
Wed, 14 Sep 2022 13:43:54 +0000 (21:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:30 +0000 (13:22 +0200)
commit5ae26a180180214d9d3bfbb58971665338e6e443
treef250db04bdae832246c590478c34cd461fc6b13d
parent8395ffbe94fd04e8204ef05cbb2975f481d85dd8
ASoC: eureka-tlv320: Hold reference returned from of_find_xxx API

[ Upstream commit 1754ae1bf96644d464c58b66c90c0f385be018bd ]

In eukrea_tlv320_probe(), we need to hold the reference returned
from of_find_compatible_node() which has increased the refcount
and then call of_node_put() with it when done.

Fixes: a8abce7236f0 ("ASoC: eukrea-tlv320: Add DT support.")
Co-authored-by: Kelin Wang <wangkelin2023@163.com>
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220914134354.3995587-1-windhl@126.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/eukrea-tlv320.c