Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283896
b: refs/heads/master
c: 5ff7ada
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Dec 7, 2011
1 parent c8173cb commit 219a111
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1496b4ac3c6a1664592351b3530489cd8eff959
refs/heads/master: 5ff7ada748fe2f74f525893577c4418bfdaf6d4f
14 changes: 4 additions & 10 deletions trunk/sound/soc/pxa/e750_wm9705.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,16 @@ static int __init e750_init(void)
if (!machine_is_e750())
return -ENODEV;

ret = gpio_request(GPIO_E750_HP_AMP_OFF, "Headphone amp");
ret = gpio_request_one(GPIO_E750_HP_AMP_OFF, GPIOF_OUT_INIT_HIGH,
"Headphone amp");
if (ret)
return ret;

ret = gpio_request(GPIO_E750_SPK_AMP_OFF, "Speaker amp");
ret = gpio_request_one(GPIO_E750_SPK_AMP_OFF, GPIOF_OUT_INIT_HIGH,
"Speaker amp");
if (ret)
goto free_hp_amp_gpio;

ret = gpio_direction_output(GPIO_E750_HP_AMP_OFF, 1);
if (ret)
goto free_spk_amp_gpio;

ret = gpio_direction_output(GPIO_E750_SPK_AMP_OFF, 1);
if (ret)
goto free_spk_amp_gpio;

e750_snd_device = platform_device_alloc("soc-audio", -1);
if (!e750_snd_device) {
ret = -ENOMEM;
Expand Down

0 comments on commit 219a111

Please sign in to comment.