From: Takashi Iwai Date: Wed, 28 Jun 2006 14:39:36 +0000 (+0200) Subject: [ALSA] echoaudio - Remove kfree_nocheck() X-Git-Tag: v2.6.18-rc1~357^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8caf7aa26e0797e5706043f94c491acd1a08636a;p=linux-2.6 [ALSA] echoaudio - Remove kfree_nocheck() Remove obsoleted kfree_nochec() (for debug). Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c index e695502f71..43b408ada1 100644 --- a/sound/pci/echoaudio/echoaudio.c +++ b/sound/pci/echoaudio/echoaudio.c @@ -1878,10 +1878,9 @@ static int snd_echo_free(struct echoaudio *chip) if (chip->dsp_registers) iounmap(chip->dsp_registers); - if (chip->iores) { - release_resource(chip->iores); - kfree_nocheck(chip->iores); - } + if (chip->iores) + release_and_free_resource(chip->iores); + DE_INIT(("MMIO freed.\n")); pci_disable_device(chip->pci);