summaryrefslogtreecommitdiff
path: root/sound/isa/opti9xx
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-03-27 15:42:39 +0400
committerJaroslav Kysela <perex@suse.cz>2006-03-31 19:58:58 +0400
commit10d150e186d069cc7e2075c4823049949933777c (patch)
tree014f18a8ac2374b17f754cd50b4c3b2e85e07360 /sound/isa/opti9xx
parentb3a70d5ece60684c00d7d94ccc42741efdf99336 (diff)
downloadlinux-10d150e186d069cc7e2075c4823049949933777c.tar.xz
[ALSA] Remove obsolete kfree_nocheck call
Fixed the compilation, removing obsolete kfree_nocheck() call for memory debugging. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/isa/opti9xx')
-rw-r--r--sound/isa/opti9xx/miro.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/isa/opti9xx/miro.c b/sound/isa/opti9xx/miro.c
index 49ba334c0d24..09384d03dc31 100644
--- a/sound/isa/opti9xx/miro.c
+++ b/sound/isa/opti9xx/miro.c
@@ -743,8 +743,7 @@ static long snd_legacy_find_free_ioport(long *port_table, long size)
struct resource *res;
if ((res = request_region(*port_table, size,
"ALSA test")) != NULL) {
- release_resource(res);
- kfree_nocheck(res);
+ release_and_free_resource(res);
return *port_table;
}
port_table++;
@@ -1150,8 +1149,7 @@ static int __init snd_card_miro_detect(struct snd_card *card, struct snd_miro *c
if (value == snd_miro_read(chip, OPTi9XX_MC_REG(1)))
return 1;
- release_resource(chip->res_mc_base);
- kfree_nocheck(chip->res_mc_base);
+ release_and_free_resource(chip->res_mc_base);
chip->res_mc_base = NULL;
}