]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: twl4030: fix child-node lookup
authorJohan Hovold <johan@kernel.org>
Mon, 13 Nov 2017 11:12:56 +0000 (12:12 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 16 Nov 2017 12:02:15 +0000 (12:02 +0000)
commit8fb712a1c4bae132bda0364c434f4d1a0abcf9a3
tree05bd07a4ba5dfefc7001b00b0d7974ce565a3022
parent21f3462fd76fd1feab182363335e4d3fd905171a
ASoC: twl4030: fix child-node lookup

Fix child-node lookup during probe, which ended up searching the whole
device tree depth-first starting at the parent rather than just matching
on its children.

To make things worse, the parent codec node was also prematurely freed,
while the child node was leaked.

Fixes: 2d34aa8663aa ("ASoC: twl4030: Support for DT booted kernel")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable <stable@vger.kernel.org>
sound/soc/codecs/twl4030.c