Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342387
b: refs/heads/master
c: a7238e4
h: refs/heads/master
i:
  342385: 3503446
  342383: 0836e99
v: v3
  • Loading branch information
Linus Walleij committed Nov 5, 2012
1 parent e6196b6 commit 7cbff1d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: f1d11f394f6e3fc0368e72244fb5ddc4142e804b
refs/heads/master: a7238e432539d25726883ed3ee48cd46b5a8fa56
12 changes: 9 additions & 3 deletions trunk/drivers/mfd/db8500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2697,9 +2697,15 @@ static struct irq_domain_ops db8500_irq_ops = {

static int db8500_irq_init(struct device_node *np)
{
db8500_irq_domain = irq_domain_add_legacy(
np, NUM_PRCMU_WAKEUPS, IRQ_PRCMU_BASE,
0, &db8500_irq_ops, NULL);
int irq_base = -1;

/* In the device tree case, just take some IRQs */
if (!np)
irq_base = IRQ_PRCMU_BASE;

db8500_irq_domain = irq_domain_add_simple(
np, NUM_PRCMU_WAKEUPS, irq_base,
&db8500_irq_ops, NULL);

if (!db8500_irq_domain) {
pr_err("Failed to create irqdomain\n");
Expand Down

0 comments on commit 7cbff1d

Please sign in to comment.