[alsa-devel] [PATCH] ASoC: cs35l35: Clear reset_gpio on the error path in probe

Brian Austin brian.austin at cirrus.com
Mon Mar 27 18:04:49 CEST 2017


On Mon, 27 Mar 2017, Charles Keepax wrote:

> 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 at opensource.wolfsonmicro.com>
> ---
Acked-by: Brian Austin <brian.austin at cirrus.com>


More information about the Alsa-devel mailing list