aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/zoom2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/omap/zoom2.c')
-rw-r--r--sound/soc/omap/zoom2.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sound/soc/omap/zoom2.c b/sound/soc/omap/zoom2.c
index 677b567935f8..771bff27ac3e 100644
--- a/sound/soc/omap/zoom2.c
+++ b/sound/soc/omap/zoom2.c
@@ -21,15 +21,14 @@
21 21
22#include <linux/clk.h> 22#include <linux/clk.h>
23#include <linux/platform_device.h> 23#include <linux/platform_device.h>
24#include <linux/gpio.h>
24#include <sound/core.h> 25#include <sound/core.h>
25#include <sound/pcm.h> 26#include <sound/pcm.h>
26#include <sound/soc.h> 27#include <sound/soc.h>
27 28
28#include <asm/mach-types.h> 29#include <asm/mach-types.h>
29#include <mach/hardware.h>
30#include <mach/gpio.h>
31#include <mach/board-zoom.h>
32#include <linux/platform_data/asoc-ti-mcbsp.h> 30#include <linux/platform_data/asoc-ti-mcbsp.h>
31#include <linux/platform_data/gpio-omap.h>
33 32
34/* Register descriptions for twl4030 codec part */ 33/* Register descriptions for twl4030 codec part */
35#include <linux/mfd/twl4030-audio.h> 34#include <linux/mfd/twl4030-audio.h>
@@ -38,8 +37,6 @@
38#include "omap-mcbsp.h" 37#include "omap-mcbsp.h"
39#include "omap-pcm.h" 38#include "omap-pcm.h"
40 39
41#define ZOOM2_HEADSET_MUX_GPIO (OMAP_MAX_GPIO_LINES + 15)
42
43static int zoom2_hw_params(struct snd_pcm_substream *substream, 40static int zoom2_hw_params(struct snd_pcm_substream *substream,
44 struct snd_pcm_hw_params *params) 41 struct snd_pcm_hw_params *params)
45{ 42{
@@ -188,9 +185,6 @@ static int __init zoom2_soc_init(void)
188 if (ret) 185 if (ret)
189 goto err1; 186 goto err1;
190 187
191 BUG_ON(gpio_request(ZOOM2_HEADSET_MUX_GPIO, "hs_mux") < 0);
192 gpio_direction_output(ZOOM2_HEADSET_MUX_GPIO, 0);
193
194 return 0; 188 return 0;
195 189
196err1: 190err1:
@@ -203,8 +197,6 @@ module_init(zoom2_soc_init);
203 197
204static void __exit zoom2_soc_exit(void) 198static void __exit zoom2_soc_exit(void)
205{ 199{
206 gpio_free(ZOOM2_HEADSET_MUX_GPIO);
207
208 platform_device_unregister(zoom2_snd_device); 200 platform_device_unregister(zoom2_snd_device);
209} 201}
210module_exit(zoom2_soc_exit); 202module_exit(zoom2_soc_exit);