aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ca0106
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/ca0106')
-rw-r--r--sound/pci/ca0106/ca0106_main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c
index ba07960921d8..0d9d8923fbbb 100644
--- a/sound/pci/ca0106/ca0106_main.c
+++ b/sound/pci/ca0106/ca0106_main.c
@@ -969,10 +969,8 @@ static int snd_ca0106_free(ca0106_t *chip)
969#endif 969#endif
970 970
971 // release the i/o port 971 // release the i/o port
972 if (chip->res_port) { 972 release_and_free_resource(chip->res_port);
973 release_resource(chip->res_port); 973
974 kfree_nocheck(chip->res_port);
975 }
976 // release the irq 974 // release the irq
977 if (chip->irq >= 0) 975 if (chip->irq >= 0)
978 free_irq(chip->irq, (void *)chip); 976 free_irq(chip->irq, (void *)chip);