From: Mark Brown Date: Sat, 25 Aug 2012 16:24:16 +0000 (-0700) Subject: ASoC: wm0010: Don't double free reset GPIO X-Git-Tag: MMI-PSA29.97-13-9~15510^2~52^2~151 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f3c3c1b32bb8fddcd7f626c2fb09d55f469f976;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: wm0010: Don't double free reset GPIO We are using devm_ to allocate the GPIO so it will be freed automatically. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index 61ec7633fe5a..6c4a2fa90fbe 100644 --- a/sound/soc/codecs/wm0010.c +++ b/sound/soc/codecs/wm0010.c @@ -917,7 +917,6 @@ static int __devexit wm0010_spi_remove(struct spi_device *spi) if (wm0010->gpio_reset) { /* Remember to put chip back into reset */ gpio_set_value(wm0010->gpio_reset, wm0010->gpio_reset_value); - gpio_free(wm0010->gpio_reset); } if (wm0010->irq)