diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-12-06 21:03:12 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-07 11:14:19 -0500 |
commit | 209e8cf668d3f421eb6d86eb62451396fb0a737d (patch) | |
tree | d96b2b4b7809fe2eddc8a7778df1164207f6499a /sound/soc/pxa | |
parent | 8faab941bec7af1c1865db316ac2f37c78071271 (diff) |
ASoC: Convert e800_wm9712 to use gpio_request_one()
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/pxa')
-rw-r--r-- | sound/soc/pxa/e800_wm9712.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sound/soc/pxa/e800_wm9712.c b/sound/soc/pxa/e800_wm9712.c index 26e02322f10b..478ff191ffb4 100644 --- a/sound/soc/pxa/e800_wm9712.c +++ b/sound/soc/pxa/e800_wm9712.c | |||
@@ -119,22 +119,16 @@ static int __init e800_init(void) | |||
119 | if (!machine_is_e800()) | 119 | if (!machine_is_e800()) |
120 | return -ENODEV; | 120 | return -ENODEV; |
121 | 121 | ||
122 | ret = gpio_request(GPIO_E800_HP_AMP_OFF, "Headphone amp"); | 122 | ret = gpio_request_one(GPIO_E800_HP_AMP_OFF, GPIOF_OUT_INIT_HIGH, |
123 | "Headphone amp"); | ||
123 | if (ret) | 124 | if (ret) |
124 | return ret; | 125 | return ret; |
125 | 126 | ||
126 | ret = gpio_request(GPIO_E800_SPK_AMP_ON, "Speaker amp"); | 127 | ret = gpio_request_one(GPIO_E800_SPK_AMP_ON, GPIOF_OUT_INIT_HIGH, |
128 | "Speaker amp"); | ||
127 | if (ret) | 129 | if (ret) |
128 | goto free_hp_amp_gpio; | 130 | goto free_hp_amp_gpio; |
129 | 131 | ||
130 | ret = gpio_direction_output(GPIO_E800_HP_AMP_OFF, 1); | ||
131 | if (ret) | ||
132 | goto free_spk_amp_gpio; | ||
133 | |||
134 | ret = gpio_direction_output(GPIO_E800_SPK_AMP_ON, 1); | ||
135 | if (ret) | ||
136 | goto free_spk_amp_gpio; | ||
137 | |||
138 | e800_snd_device = platform_device_alloc("soc-audio", -1); | 132 | e800_snd_device = platform_device_alloc("soc-audio", -1); |
139 | if (!e800_snd_device) { | 133 | if (!e800_snd_device) { |
140 | ret = -ENOMEM; | 134 | ret = -ENOMEM; |