Skip to content

Commit

Permalink
ASoC: wm5100: Fix mismerge of IRQ frees
Browse files Browse the repository at this point in the history
We only want them at the device level, not at the CODEC level.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Jan 24, 2012
1 parent 05d448e commit e8770dd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sound/soc/codecs/wm5100.c
Original file line number Diff line number Diff line change
Expand Up @@ -2525,8 +2525,6 @@ static int wm5100_probe(struct snd_soc_codec *codec)
return 0;

err_gpio:
if (i2c->irq)
free_irq(i2c->irq, wm5100);

return ret;
}
Expand All @@ -2539,8 +2537,6 @@ static int wm5100_remove(struct snd_soc_codec *codec)
if (wm5100->pdata.hp_pol) {
gpio_free(wm5100->pdata.hp_pol);
}
if (i2c->irq)
free_irq(i2c->irq, wm5100);

return 0;
}
Expand Down

0 comments on commit e8770dd

Please sign in to comment.