ALSA: opti93x: fix irq releasing if the irq cannot be allocated
authorKrzysztof Helt <krzysztof.h1@wp.pl>
Wed, 9 Dec 2009 19:12:43 +0000 (20:12 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Dec 2009 10:39:48 +0000 (11:39 +0100)
commit5f60e496083efb01893a899b6885828330db971f
treeea21538d0b263f494e2cb1e51cd3333cf30db286
parent84194883bcf89383ea4230116bb0195af5ec5829
ALSA: opti93x: fix irq releasing if the irq cannot be allocated

Use the chip->irq to check if the irq should be released so the irq is not released
if it has not been allocated.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/opti9xx/opti92x-ad1848.c