Skip to content

Commit

Permalink
ASoC: wm0010: Don't double free reset GPIO
Browse files Browse the repository at this point in the history
We are using devm_ to allocate the GPIO so it will be freed automatically.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Aug 25, 2012
1 parent d3fd716 commit 4f3c3c1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/codecs/wm0010.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4f3c3c1

Please sign in to comment.