Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332168
b: refs/heads/master
c: 9bb6844
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Sep 26, 2012
1 parent 441d00d commit 60dfb43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 5afe5bfe243d649aa5118c74317cbcbe85a04cb9
refs/heads/master: 9bb684442cf48c0e0736f5902f112c4f39ee3677
7 changes: 2 additions & 5 deletions trunk/sound/soc/codecs/wm0010.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,6 @@ static int wm0010_probe(struct snd_soc_codec *codec)

static int __devinit wm0010_spi_probe(struct spi_device *spi)
{
unsigned long flags;
unsigned long gpio_flags;
int ret;
int trigger;
Expand Down Expand Up @@ -877,6 +876,8 @@ static int __devinit wm0010_spi_probe(struct spi_device *spi)
return -EINVAL;
}

wm0010->state = WM0010_POWER_OFF;

irq = spi->irq;
if (wm0010->pdata.irq_flags)
trigger = wm0010->pdata.irq_flags;
Expand All @@ -898,10 +899,6 @@ static int __devinit wm0010_spi_probe(struct spi_device *spi)
else
wm0010->board_max_spi_speed = 0;

spin_lock_irqsave(&wm0010->irq_lock, flags);
wm0010->state = WM0010_POWER_OFF;
spin_unlock_irqrestore(&wm0010->irq_lock, flags);

ret = snd_soc_register_codec(&spi->dev,
&soc_codec_dev_wm0010, wm0010_dai,
ARRAY_SIZE(wm0010_dai));
Expand Down

0 comments on commit 60dfb43

Please sign in to comment.