ASoC: e740_wm9705 - free gpio in e740_exit()
authorAxel Lin <axel.lin@gmail.com>
Thu, 19 Aug 2010 06:40:25 +0000 (14:40 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Aug 2010 11:14:44 +0000 (12:14 +0100)
In e740_init(), we call gpio_request() for
GPIO_E740_MIC_ON, GPIO_E740_AMP_ON and GPIO_E740_WM9705_nAVDD2.
We should free the these gpio accordingly in e740_exit().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/pxa/e740_wm9705.c

index f614607b2055a4d9664a1eb333ee93af02ea59e5..c82cedb602fdaba519482639ea86dd670ccd9f12 100644 (file)
@@ -198,6 +198,9 @@ free_mic_amp_gpio:
 static void __exit e740_exit(void)
 {
        platform_device_unregister(e740_snd_device);
+       gpio_free(GPIO_E740_WM9705_nAVDD2);
+       gpio_free(GPIO_E740_AMP_ON);
+       gpio_free(GPIO_E740_MIC_ON);
 }
 
 module_init(e740_init);