diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-08-19 02:40:25 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-08-20 07:14:44 -0400 |
commit | b67696b40f2e7f890d017db3c6805ff90cb392b6 (patch) | |
tree | 82c398f363ce730e445bb3672e2c8bfeac42e48c /sound/soc/pxa | |
parent | 5394637a246f4709e6f9c62b6af2356f49ef46a7 (diff) |
ASoC: e740_wm9705 - free gpio in e740_exit()
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>
Diffstat (limited to 'sound/soc/pxa')
-rw-r--r-- | sound/soc/pxa/e740_wm9705.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/pxa/e740_wm9705.c b/sound/soc/pxa/e740_wm9705.c index f614607b2055..c82cedb602fd 100644 --- a/sound/soc/pxa/e740_wm9705.c +++ b/sound/soc/pxa/e740_wm9705.c | |||
@@ -198,6 +198,9 @@ free_mic_amp_gpio: | |||
198 | static void __exit e740_exit(void) | 198 | static void __exit e740_exit(void) |
199 | { | 199 | { |
200 | platform_device_unregister(e740_snd_device); | 200 | platform_device_unregister(e740_snd_device); |
201 | gpio_free(GPIO_E740_WM9705_nAVDD2); | ||
202 | gpio_free(GPIO_E740_AMP_ON); | ||
203 | gpio_free(GPIO_E740_MIC_ON); | ||
201 | } | 204 | } |
202 | 205 | ||
203 | module_init(e740_init); | 206 | module_init(e740_init); |