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>
This commit is contained in:
Charles Keepax 2013-06-03 15:57:55 +01:00 committed by Mark Brown
parent e684533b10
commit fd8b965744

View File

@ -14,6 +14,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h> #include <linux/moduleparam.h>
#include <linux/interrupt.h>
#include <linux/irqreturn.h> #include <linux/irqreturn.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/spi/spi.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, gpio_set_value_cansleep(wm0010->gpio_reset,
wm0010->gpio_reset_value); wm0010->gpio_reset_value);
irq_set_irq_wake(wm0010->irq, 0);
if (wm0010->irq) if (wm0010->irq)
free_irq(wm0010->irq, wm0010); free_irq(wm0010->irq, wm0010);