]> 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)
commitcf952427274b43576a75e757c4190bf659a55331
tree05bd07a4ba5dfefc7001b00b0d7974ce565a3022
parente6445c5ebc6882ff40fbae578c8d9c99f731ece2
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: 9c388af267e3 ("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