Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345035
b: refs/heads/master
c: b20a437
h: refs/heads/master
i:
  345033: 8b2172b
  345031: 9b4666a
v: v3
  • Loading branch information
Lee Jones authored and Samuel Ortiz committed Nov 26, 2012
1 parent 16c1afb commit b679970
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 3f9be35bd9090eaa2f68ed9b24efdbf3abcf4b28
refs/heads/master: b20a43715e675815d0a426f05a7607ba099136aa
14 changes: 5 additions & 9 deletions trunk/drivers/mfd/stmpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -888,18 +888,14 @@ static struct irq_domain_ops stmpe_irq_ops = {
static int __devinit stmpe_irq_init(struct stmpe *stmpe,
struct device_node *np)
{
int base = stmpe->irq_base;
int base = 0;
int num_irqs = stmpe->variant->num_irqs;

if (base) {
stmpe->domain = irq_domain_add_legacy(
np, num_irqs, base, 0, &stmpe_irq_ops, stmpe);
}
else {
stmpe->domain = irq_domain_add_linear(
np, num_irqs, &stmpe_irq_ops, stmpe);
}
if (!np)
base = stmpe->irq_base;

stmpe->domain = irq_domain_add_simple(np, num_irqs, base,
&stmpe_irq_ops, stmpe);
if (!stmpe->domain) {
dev_err(stmpe->dev, "Failed to create irqdomain\n");
return -ENOSYS;
Expand Down

0 comments on commit b679970

Please sign in to comment.