Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321674
b: refs/heads/master
c: fa75ce6
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Aug 9, 2012
1 parent 364a36f commit bac4afe
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 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: d0b464d67001d202e59f7e60a30074c4d74021aa
refs/heads/master: fa75ce649ee2600b117631f8794e0e7dbedb1d68
2 changes: 1 addition & 1 deletion trunk/arch/sh/drivers/dma/dma-sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ static int dmae_irq_init(void)

for (n = 0; n < NR_DMAE; n++) {
int i = request_irq(get_dma_error_irq(n), dma_err,
IRQF_SHARED, dmae_name[n], NULL);
IRQF_SHARED, dmae_name[n], (void *)dmae_name[n]);
if (unlikely(i < 0)) {
printk(KERN_ERR "%s request_irq fail\n", dmae_name[n]);
return i;
Expand Down
27 changes: 23 additions & 4 deletions trunk/drivers/sh/intc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,16 @@ int __init register_intc_controller(struct intc_desc *desc)

res = irq_create_identity_mapping(d->domain, irq);
if (unlikely(res)) {
pr_err("can't get irq_desc for %d\n", irq);
continue;
if (res == -EEXIST) {
res = irq_domain_associate(d->domain, irq, irq);
if (unlikely(res)) {
pr_err("domain association failure\n");
continue;
}
} else {
pr_err("can't identity map IRQ %d\n", irq);
continue;
}
}

intc_irq_xlate_set(irq, vect->enum_id, d);
Expand All @@ -345,8 +353,19 @@ int __init register_intc_controller(struct intc_desc *desc)
*/
res = irq_create_identity_mapping(d->domain, irq2);
if (unlikely(res)) {
pr_err("can't get irq_desc for %d\n", irq2);
continue;
if (res == -EEXIST) {
res = irq_domain_associate(d->domain,
irq, irq);
if (unlikely(res)) {
pr_err("domain association "
"failure\n");
continue;
}
} else {
pr_err("can't identity map IRQ %d\n",
irq);
continue;
}
}

vect2->enum_id = 0;
Expand Down

0 comments on commit bac4afe

Please sign in to comment.