From: Charles Keepax Date: Mon, 3 Jun 2013 14:57:55 +0000 (+0100) Subject: ASoC: wm0010: Clear IRQ as wake source and include missing header X-Git-Tag: v3.11-rc1~97^2~3^2~24^2~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd8b96574456e23fe7dad491711f371f86034c64;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index b6df319869ac5..f5e835662cdca 100644 --- a/sound/soc/codecs/wm0010.c +++ b/sound/soc/codecs/wm0010.c @@ -14,6 +14,7 @@ #include #include +#include #include #include #include @@ -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);