diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-25 16:24:16 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-25 20:23:42 (GMT) |
commit | 4f3c3c1b32bb8fddcd7f626c2fb09d55f469f976 (patch) | |
tree | ea462650e0e1bd08a4855840f6400e80db133d38 /sound/soc/codecs/wm0010.c | |
parent | d3fd716e82ed643d804c49ca9ca554079c429a5c (diff) | |
download | linux-fsl-qoriq-4f3c3c1b32bb8fddcd7f626c2fb09d55f469f976.tar.xz |
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 <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm0010.c')
-rw-r--r-- | sound/soc/codecs/wm0010.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index 61ec763..6c4a2fa 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) |