ASoC: e740_wm9705 - free gpio in e740_exit()
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- sound/soc/pxa/e740_wm9705.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
sound/soc/pxa/e740_wm9705.c +3 -0
@@ -200,6 +200,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);
Signature · 1 line
1.7.2
Quoted 5 lines · Axel Lin
In
e740_init(), we callgpio_request()forGPIO_E740_MIC_ON,GPIO_E740_AMP_ONandGPIO_E740_WM9705_nAVDD2. We should free the these gpio accordingly ine740_exit().Signed-off-by Axel Lin <[email protected]>
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Mark Brown
AppliedQuoted 5 lines · Axel Lin
In
e740_init(), we callgpio_request()forGPIO_E740_MIC_ON,GPIO_E740_AMP_ONandGPIO_E740_WM9705_nAVDD2. We should free the these gpio accordingly ine740_exit().Signed-off-by Axel Lin <[email protected]>
Applied, thanks.