Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53342
b: refs/heads/master
c: 7ede9c1
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Greg Kroah-Hartman committed May 3, 2007
1 parent ea13965 commit e58cd69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc4afc7b2bdd81e2dbded5a8222676d3161758d3
refs/heads/master: 7ede9c1fa50e01a8222217d4606bcbc44cd68f1a
10 changes: 3 additions & 7 deletions trunk/drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,6 @@ void pci_disable_msi(struct pci_dev* dev)
return;
}

BUG_ON(irq_has_action(dev->first_msi_irq));

default_irq = entry->msi_attrib.default_irq;
msi_free_irq(dev, dev->first_msi_irq);

Expand All @@ -590,6 +588,8 @@ static int msi_free_irq(struct pci_dev* dev, int irq)
int head, entry_nr, type;
void __iomem *base;

BUG_ON(irq_has_action(irq));

entry = get_irq_msi(irq);
if (!entry || entry->dev != dev) {
return -EINVAL;
Expand Down Expand Up @@ -682,8 +682,6 @@ static void msix_free_all_irqs(struct pci_dev *dev)
while (head != tail) {
tail = get_irq_msi(irq)->link.tail;

BUG_ON(irq_has_action(irq));

if (irq != head)
msi_free_irq(dev, irq);
irq = tail;
Expand Down Expand Up @@ -723,10 +721,8 @@ void msi_remove_pci_irq_vectors(struct pci_dev* dev)
if (!pci_msi_enable || !dev)
return;

if (dev->msi_enabled) {
BUG_ON(irq_has_action(dev->first_msi_irq));
if (dev->msi_enabled)
msi_free_irq(dev, dev->first_msi_irq);
}

if (dev->msix_enabled)
msix_free_all_irqs(dev);
Expand Down

0 comments on commit e58cd69

Please sign in to comment.