Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67392
b: refs/heads/master
c: d9303d6
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Oct 2, 2007
1 parent c983b06 commit ee99f86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: db220b234da9f183b127b9c3077c253b94756e35
refs/heads/master: d9303d662fa3fca8a6d27dee82b961a5f5524f20
11 changes: 2 additions & 9 deletions trunk/arch/powerpc/sysdev/mpic_u3msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,25 +125,22 @@ static void u3msi_compose_msi_msg(struct pci_dev *pdev, int virq,
static int u3msi_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
{
irq_hw_number_t hwirq;
int rc;
unsigned int virq;
struct msi_desc *entry;
struct msi_msg msg;

list_for_each_entry(entry, &pdev->msi_list, list) {
hwirq = mpic_msi_alloc_hwirqs(msi_mpic, 1);
if (hwirq < 0) {
rc = hwirq;
pr_debug("u3msi: failed allocating hwirq\n");
goto out_free;
return hwirq;
}

virq = irq_create_mapping(msi_mpic->irqhost, hwirq);
if (virq == NO_IRQ) {
pr_debug("u3msi: failed mapping hwirq 0x%lx\n", hwirq);
mpic_msi_free_hwirqs(msi_mpic, hwirq, 1);
rc = -ENOSPC;
goto out_free;
return -ENOSPC;
}

set_irq_msi(virq, entry);
Expand All @@ -157,10 +154,6 @@ static int u3msi_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
}

return 0;

out_free:
u3msi_teardown_msi_irqs(pdev);
return rc;
}

int mpic_u3msi_init(struct mpic *mpic)
Expand Down

0 comments on commit ee99f86

Please sign in to comment.