Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273396
b: refs/heads/master
c: 49dcd07
h: refs/heads/master
v: v3
  • Loading branch information
Santosh Shilimkar authored and Samuel Ortiz committed Oct 24, 2011
1 parent c5779da commit 5d3d67e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5da721c87aee3d94cfc48384073c2ec51a0b9a3b
refs/heads/master: 49dcd070d0718a8b8db344d7b3d5e278362ecd86
9 changes: 9 additions & 0 deletions trunk/drivers/mfd/twl6030-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ static inline void activate_irq(int irq)
#endif
}

int twl6030_irq_set_wake(struct irq_data *d, unsigned int on)
{
int twl_irq = (int)irq_get_chip_data(d->irq);

return irq_set_irq_wake(twl_irq, on);
}

/*----------------------------------------------------------------------*/

static unsigned twl6030_irq_next;
Expand Down Expand Up @@ -318,10 +325,12 @@ int twl6030_init_irq(int irq_num, unsigned irq_base, unsigned irq_end)
twl6030_irq_chip = dummy_irq_chip;
twl6030_irq_chip.name = "twl6030";
twl6030_irq_chip.irq_set_type = NULL;
twl6030_irq_chip.irq_set_wake = twl6030_irq_set_wake;

for (i = irq_base; i < irq_end; i++) {
irq_set_chip_and_handler(i, &twl6030_irq_chip,
handle_simple_irq);
irq_set_chip_data(i, (void *)irq_num);
activate_irq(i);
}

Expand Down

0 comments on commit 5d3d67e

Please sign in to comment.