diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/isa/opti9xx/opti92x-ad1848.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/opti9xx/opti92x-ad1848.c b/sound/isa/opti9xx/opti92x-ad1848.c index 41c047e665ec..d20abb286124 100644 --- a/sound/isa/opti9xx/opti92x-ad1848.c +++ b/sound/isa/opti9xx/opti92x-ad1848.c | |||
@@ -688,7 +688,7 @@ static void snd_card_opti9xx_free(struct snd_card *card) | |||
688 | if (chip) { | 688 | if (chip) { |
689 | #ifdef OPTi93X | 689 | #ifdef OPTi93X |
690 | struct snd_cs4231 *codec = chip->codec; | 690 | struct snd_cs4231 *codec = chip->codec; |
691 | if (codec->irq > 0) { | 691 | if (codec && codec->irq > 0) { |
692 | disable_irq(codec->irq); | 692 | disable_irq(codec->irq); |
693 | free_irq(codec->irq, codec); | 693 | free_irq(codec->irq, codec); |
694 | } | 694 | } |