Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283996
b: refs/heads/master
c: 8215010
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Dec 21, 2011
1 parent 7a33815 commit 570cfdc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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: 3f7cec0493eec1d0139a20716b1ce34815a446c3
refs/heads/master: 82150101df27c0f3d315b597081b9fa0e23cd002
4 changes: 0 additions & 4 deletions trunk/sound/soc/soc-jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,8 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
gpios[i].gpio, ret);
}

#ifdef CONFIG_GPIO_SYSFS
/* Expose GPIO value over sysfs for diagnostic purposes */
gpio_export(gpios[i].gpio, false);
#endif

/* Update initial jack status */
snd_soc_jack_gpio_detect(&gpios[i]);
Expand Down Expand Up @@ -376,9 +374,7 @@ void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count,
int i;

for (i = 0; i < count; i++) {
#ifdef CONFIG_GPIO_SYSFS
gpio_unexport(gpios[i].gpio);
#endif
free_irq(gpio_to_irq(gpios[i].gpio), &gpios[i]);
cancel_delayed_work_sync(&gpios[i].work);
gpio_free(gpios[i].gpio);
Expand Down

0 comments on commit 570cfdc

Please sign in to comment.