summaryrefslogtreecommitdiffstats
path: root/include/sound/cs35l35.h
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2017-03-27 17:54:27 +0200
committerMark Brown <broonie@kernel.org>2017-03-27 18:26:53 +0200
commit8e71321d19c4ed02d9eed15955b8d485bab016fc (patch)
tree9753c48a77b62e3a7698b401d29120c635ad39a9 /include/sound/cs35l35.h
parentASoC: cs35l35: Stash dev pointer directly rather than CODEC pointer (diff)
downloadlinux-8e71321d19c4ed02d9eed15955b8d485bab016fc.tar.xz
linux-8e71321d19c4ed02d9eed15955b8d485bab016fc.zip
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>
Diffstat (limited to 'include/sound/cs35l35.h')
0 files changed, 0 insertions, 0 deletions