Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f3c3c1b authored by Mark Brown's avatar Mark Brown
Browse files

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent d3fd716e
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -917,7 +917,6 @@ static int __devexit wm0010_spi_remove(struct spi_device *spi)
	if (wm0010->gpio_reset) {
	if (wm0010->gpio_reset) {
		/* Remember to put chip back into reset */
		/* Remember to put chip back into reset */
		gpio_set_value(wm0010->gpio_reset, wm0010->gpio_reset_value);
		gpio_set_value(wm0010->gpio_reset, wm0010->gpio_reset_value);
		gpio_free(wm0010->gpio_reset);
	}
	}


	if (wm0010->irq)
	if (wm0010->irq)