ASoC: wm0010: Clear IRQ as wake source and include missing header
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 3 Jun 2013 14:57:55 +0000 (15:57 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 3 Jun 2013 15:38:06 +0000 (16:38 +0100)
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>
sound/soc/codecs/wm0010.c

index b6df319869ac55e70a587cbf548eda3d1851cd08..f5e835662cdca30477738e39ffe7d57f6305db78 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
+#include <linux/interrupt.h>
 #include <linux/irqreturn.h>
 #include <linux/init.h>
 #include <linux/spi/spi.h>
@@ -1002,6 +1003,8 @@ static int wm0010_spi_remove(struct spi_device *spi)
        gpio_set_value_cansleep(wm0010->gpio_reset,
                                wm0010->gpio_reset_value);
 
+       irq_set_irq_wake(wm0010->irq, 0);
+
        if (wm0010->irq)
                free_irq(wm0010->irq, wm0010);