]> git.itanic.dy.fi Git - linux-stable/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)
committerMark Brown <broonie@kernel.org>
Wed, 14 Sep 2022 14:05:59 +0000 (15:05 +0100)
commitbfb735a3ceff0bab6473bac275da96f9b2a06dec
tree18c4f534431f90a1710681b0d6be71b932ff9fd7
parentfbb0ec656ee5ee43b4b3022fd8290707265c52df
ASoC: eureka-tlv320: Hold reference returned from of_find_xxx API

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: 66f232908de2 ("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>
sound/soc/fsl/eukrea-tlv320.c