提交 5afe5bfe 编写于 作者: M Mark Brown

ASoC: wm0010: Don't check if reset GPIO is defined when removing

We will fail to probe without one.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 fff00cbc
...@@ -917,11 +917,8 @@ static int __devexit wm0010_spi_remove(struct spi_device *spi) ...@@ -917,11 +917,8 @@ static int __devexit wm0010_spi_remove(struct spi_device *spi)
snd_soc_unregister_codec(&spi->dev); snd_soc_unregister_codec(&spi->dev);
if (wm0010->gpio_reset) { gpio_set_value_cansleep(wm0010->gpio_reset,
/* Remember to put chip back into reset */ wm0010->gpio_reset_value);
gpio_set_value_cansleep(wm0010->gpio_reset,
wm0010->gpio_reset_value);
}
if (wm0010->irq) if (wm0010->irq)
free_irq(wm0010->irq, wm0010); free_irq(wm0010->irq, wm0010);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册