diff options
Diffstat (limited to 'sound/isa/ad1848')
-rw-r--r-- | sound/isa/ad1848/ad1848_lib.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/isa/ad1848/ad1848_lib.c b/sound/isa/ad1848/ad1848_lib.c index 303861cd03cd..0c2924dfefaf 100644 --- a/sound/isa/ad1848/ad1848_lib.c +++ b/sound/isa/ad1848/ad1848_lib.c | |||
@@ -846,10 +846,7 @@ static int snd_ad1848_capture_close(snd_pcm_substream_t * substream) | |||
846 | 846 | ||
847 | static int snd_ad1848_free(ad1848_t *chip) | 847 | static int snd_ad1848_free(ad1848_t *chip) |
848 | { | 848 | { |
849 | if (chip->res_port) { | 849 | release_and_free_resource(chip->res_port); |
850 | release_resource(chip->res_port); | ||
851 | kfree_nocheck(chip->res_port); | ||
852 | } | ||
853 | if (chip->irq >= 0) | 850 | if (chip->irq >= 0) |
854 | free_irq(chip->irq, (void *) chip); | 851 | free_irq(chip->irq, (void *) chip); |
855 | if (chip->dma >= 0) { | 852 | if (chip->dma >= 0) { |