Commit 893fca8a authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] janitor: i810_audio: balance pci_alloc/free_consistent

From: Leann Ogasawara <ogasawara@osdl.org>
parent 6f37b7b3
...@@ -3258,6 +3258,8 @@ static void __devexit i810_remove(struct pci_dev *pci_dev) ...@@ -3258,6 +3258,8 @@ static void __devexit i810_remove(struct pci_dev *pci_dev)
free_irq(card->irq, devs); free_irq(card->irq, devs);
release_region(card->iobase, 64); release_region(card->iobase, 64);
release_region(card->ac97base, 256); release_region(card->ac97base, 256);
pci_free_consistent(pci_dev, sizeof(struct i810_channel)*NR_HW_CH,
card->channel, card->chandma);
if (card->use_mmio) { if (card->use_mmio) {
iounmap(card->ac97base_mmio); iounmap(card->ac97base_mmio);
iounmap(card->iobase_mmio); iounmap(card->iobase_mmio);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment