Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320886
b: refs/heads/master
c: f5a1ad0
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Grant Likely committed Jul 25, 2012
1 parent d0d22df commit 3c29220
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 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: 4c0946c47463defa681b83294383dc996d255bb7
refs/heads/master: f5a1ad057e6da5d0fc9c5677ff44797d193d3e62
17 changes: 11 additions & 6 deletions trunk/kernel/irq/irqdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ int irq_domain_associate_many(struct irq_domain *domain, unsigned int irq_base,
{
unsigned int virq = irq_base;
irq_hw_number_t hwirq = hwirq_base;
int i;
int i, ret;

pr_debug("%s(%s, irqbase=%i, hwbase=%i, count=%i)\n", __func__,
of_node_full_name(domain->of_node), irq_base, (int)hwirq_base, count);
Expand All @@ -436,11 +436,16 @@ int irq_domain_associate_many(struct irq_domain *domain, unsigned int irq_base,

irq_data->hwirq = hwirq;
irq_data->domain = domain;
if (domain->ops->map && domain->ops->map(domain, virq, hwirq)) {
pr_err("irq-%i==>hwirq-0x%lx mapping failed\n", virq, hwirq);
irq_data->domain = NULL;
irq_data->hwirq = 0;
goto err_unmap;
if (domain->ops->map) {
ret = domain->ops->map(domain, virq, hwirq);
if (ret != 0) {
pr_err("irq-%i==>hwirq-0x%lx mapping failed: %d\n",
virq, hwirq, ret);
WARN_ON(1);
irq_data->domain = NULL;
irq_data->hwirq = 0;
goto err_unmap;
}
}

switch (domain->revmap_type) {
Expand Down

0 comments on commit 3c29220

Please sign in to comment.