diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-25 11:36:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-26 08:53:59 -0400 |
commit | 5afe5bfe243d649aa5118c74317cbcbe85a04cb9 (patch) | |
tree | 02455c65723c758b6781ca18bb2daba7e77f63e7 /sound | |
parent | fff00cbca13ab303b3995353d22c47e6b0f68fd8 (diff) |
ASoC: wm0010: Don't check if reset GPIO is defined when removing
We will fail to probe without one.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm0010.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index 4722acfb82a8..780110a15c97 100644 --- a/sound/soc/codecs/wm0010.c +++ b/sound/soc/codecs/wm0010.c | |||
@@ -917,11 +917,8 @@ static int __devexit wm0010_spi_remove(struct spi_device *spi) | |||
917 | 917 | ||
918 | snd_soc_unregister_codec(&spi->dev); | 918 | snd_soc_unregister_codec(&spi->dev); |
919 | 919 | ||
920 | if (wm0010->gpio_reset) { | 920 | gpio_set_value_cansleep(wm0010->gpio_reset, |
921 | /* Remember to put chip back into reset */ | 921 | wm0010->gpio_reset_value); |
922 | gpio_set_value_cansleep(wm0010->gpio_reset, | ||
923 | wm0010->gpio_reset_value); | ||
924 | } | ||
925 | 922 | ||
926 | if (wm0010->irq) | 923 | if (wm0010->irq) |
927 | free_irq(wm0010->irq, wm0010); | 924 | free_irq(wm0010->irq, wm0010); |