aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/nm256/nm256.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/nm256/nm256.c')
-rw-r--r--sound/pci/nm256/nm256.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/nm256/nm256.c b/sound/pci/nm256/nm256.c
index 4e41a4e29a1e..3f52a44143a5 100644
--- a/sound/pci/nm256/nm256.c
+++ b/sound/pci/nm256/nm256.c
@@ -1460,10 +1460,8 @@ static int snd_nm256_free(struct nm256 *chip)
1460 if (chip->irq >= 0) 1460 if (chip->irq >= 0)
1461 free_irq(chip->irq, chip); 1461 free_irq(chip->irq, chip);
1462 1462
1463 if (chip->cport) 1463 iounmap(chip->cport);
1464 iounmap(chip->cport); 1464 iounmap(chip->buffer);
1465 if (chip->buffer)
1466 iounmap(chip->buffer);
1467 release_and_free_resource(chip->res_cport); 1465 release_and_free_resource(chip->res_cport);
1468 release_and_free_resource(chip->res_buffer); 1466 release_and_free_resource(chip->res_buffer);
1469 1467