diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2013-06-03 10:57:55 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-03 11:38:06 -0400 |
commit | fd8b96574456e23fe7dad491711f371f86034c64 (patch) | |
tree | 888a40af2e4c8fa14b27f98bf80255bf0a8d31a5 /sound/soc/codecs/wm0010.c | |
parent | e684533b1044498606a37e2b5ba8bb0bef56067f (diff) |
ASoC: wm0010: Clear IRQ as wake source and include missing header
Both clear the IRQ as being a wake source when we are finished with it
and include a missing header file that is required.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/wm0010.c')
-rw-r--r-- | sound/soc/codecs/wm0010.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index b6df319869ac..f5e835662cdc 100644 --- a/sound/soc/codecs/wm0010.c +++ b/sound/soc/codecs/wm0010.c | |||
@@ -14,6 +14,7 @@ | |||
14 | 14 | ||
15 | #include <linux/module.h> | 15 | #include <linux/module.h> |
16 | #include <linux/moduleparam.h> | 16 | #include <linux/moduleparam.h> |
17 | #include <linux/interrupt.h> | ||
17 | #include <linux/irqreturn.h> | 18 | #include <linux/irqreturn.h> |
18 | #include <linux/init.h> | 19 | #include <linux/init.h> |
19 | #include <linux/spi/spi.h> | 20 | #include <linux/spi/spi.h> |
@@ -1002,6 +1003,8 @@ static int wm0010_spi_remove(struct spi_device *spi) | |||
1002 | gpio_set_value_cansleep(wm0010->gpio_reset, | 1003 | gpio_set_value_cansleep(wm0010->gpio_reset, |
1003 | wm0010->gpio_reset_value); | 1004 | wm0010->gpio_reset_value); |
1004 | 1005 | ||
1006 | irq_set_irq_wake(wm0010->irq, 0); | ||
1007 | |||
1005 | if (wm0010->irq) | 1008 | if (wm0010->irq) |
1006 | free_irq(wm0010->irq, wm0010); | 1009 | free_irq(wm0010->irq, wm0010); |
1007 | 1010 | ||