sh: intc: set_irq_wake() support
authorMagnus Damm <damm@igel.co.jp>
Wed, 1 Apr 2009 14:30:59 +0000 (14:30 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 2 Apr 2009 02:19:57 +0000 (11:19 +0900)
commit2dcec7a988a1895540460a0bf5603bab63d5a3ed
tree8f03591269afafd31382c118b99cc51c69ad9bf3
parentf7dd2548c471b1c7758611f6cd6393367d7ff649
sh: intc: set_irq_wake() support

Add set_irq_wake() support to intc using sysdev and suspend.

The intc controllers are put on a list at registration time
and registered as sysdev devices later on during the boot.

The sysdev class suspend callback is used to find irqs with
wakeup enabled belonging to our intc controller. Such irqs
are simply enabled so wakeup interrupts may reach the cpu.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/intc.c