]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ASoC: wm0010: Don't double free reset GPIO
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 25 Aug 2012 16:24:16 +0000 (09:24 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 25 Aug 2012 20:23:42 +0000 (13:23 -0700)
We are using devm_ to allocate the GPIO so it will be freed automatically.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm0010.c

index 61ec7633fe5ad85d5a3052dcc1c822cb1713f06b..6c4a2fa90fbe87b88a26e3e0d2dfd52a47f2d25e 100644 (file)
@@ -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)