]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - sound/pci/ca0106/ca0106_main.c
[ALSA] Remove vmalloc wrapper, kfree_nocheck()
[mirror_ubuntu-artful-kernel.git] / sound / pci / ca0106 / ca0106_main.c
index ba07960921d8018f92d92957275b37ccf25105d4..0d9d8923fbbbff2ca1d053e3b237a5af057e9758 100644 (file)
@@ -969,10 +969,8 @@ static int snd_ca0106_free(ca0106_t *chip)
 #endif
 
        // release the i/o port
-       if (chip->res_port) {
-               release_resource(chip->res_port);
-               kfree_nocheck(chip->res_port);
-       }
+       release_and_free_resource(chip->res_port);
+
        // release the irq
        if (chip->irq >= 0)
                free_irq(chip->irq, (void *)chip);