ASoC: wm5100: Fix mismerge of IRQ frees
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 24 Jan 2012 12:11:20 +0000 (12:11 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 24 Jan 2012 12:11:20 +0000 (12:11 +0000)
We only want them at the device level, not at the CODEC level.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm5100.c

index c291f8ea32e9d33cedba10e98da08cab65f5d6ed..81056d8dc89e738d58dea736d1c6af88185ae9bd 100644 (file)
@@ -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;
 }
@@ -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;
 }