Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101643
b: refs/heads/master
c: 997526d
h: refs/heads/master
i:
  101641: 005ce63
  101639: 8b5d3a4
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Jun 9, 2008
1 parent 53049be commit b47e816
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 7c4f10b9003dc8423df07574ba197bbbe3bc382b
refs/heads/master: 997526db9fa408058f23de19c0e12abd9207276b
16 changes: 7 additions & 9 deletions trunk/arch/powerpc/platforms/cell/axon_msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,13 @@ static int axon_msi_probe(struct of_device *device,
goto out_free_msic;
}

virq = irq_of_parse_and_map(dn, 0);
if (virq == NO_IRQ) {
printk(KERN_ERR "axon_msi: irq parse and map failed for %s\n",
dn->full_name);
goto out_free_fifo;
}

msic->irq_host = irq_alloc_host(of_node_get(dn), IRQ_HOST_MAP_NOMAP,
NR_IRQS, &msic_host_ops, 0);
if (!msic->irq_host) {
Expand All @@ -368,13 +375,6 @@ static int axon_msi_probe(struct of_device *device,

msic->irq_host->host_data = msic;

virq = irq_of_parse_and_map(dn, 0);
if (virq == NO_IRQ) {
printk(KERN_ERR "axon_msi: irq parse and map failed for %s\n",
dn->full_name);
goto out_free_host;
}

set_irq_data(virq, msic);
set_irq_chained_handler(virq, axon_msi_cascade);
pr_debug("axon_msi: irq 0x%x setup for axon_msi\n", virq);
Expand All @@ -399,8 +399,6 @@ static int axon_msi_probe(struct of_device *device,

return 0;

out_free_host:
kfree(msic->irq_host);
out_free_fifo:
dma_free_coherent(&device->dev, MSIC_FIFO_SIZE_BYTES, msic->fifo_virt,
msic->fifo_phys);
Expand Down

0 comments on commit b47e816

Please sign in to comment.