]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs35l35: Clear reset_gpio on the error path in probe
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 27 Mar 2017 15:54:27 +0000 (16:54 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Mar 2017 16:26:53 +0000 (17:26 +0100)
commitddde0a1a030e4d4956c3565f57001d338f34941e
tree9753c48a77b62e3a7698b401d29120c635ad39a9
parent3d62caf8b2834cc48c04a2cf5774814c96359560
ASoC: cs35l35: Clear reset_gpio on the error path in probe

The error path in probe attempts to put the device back into reset.
Should we fail to get the reset_gpio (such as a probe defer) we will
leave the error value in there, which the gpiod_set_value_cansleep on
the error path will attempt to deference.

Fix this issue by clearing reset_gpio before we head into the error
path.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l35.c