diff options
Diffstat (limited to 'arch/arm/plat-s3c24xx/irq-pm.c')
-rw-r--r-- | arch/arm/plat-s3c24xx/irq-pm.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/arch/arm/plat-s3c24xx/irq-pm.c b/arch/arm/plat-s3c24xx/irq-pm.c index 86c68804f098..b7acf1a8ecd2 100644 --- a/arch/arm/plat-s3c24xx/irq-pm.c +++ b/arch/arm/plat-s3c24xx/irq-pm.c | |||
@@ -28,12 +28,9 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | unsigned long s3c_irqwake_intallow = 1L << (IRQ_RTC - IRQ_EINT0) | 0xfL; | 30 | unsigned long s3c_irqwake_intallow = 1L << (IRQ_RTC - IRQ_EINT0) | 0xfL; |
31 | unsigned long s3c_irqwake_intmask = 0xffffffffL; | ||
32 | unsigned long s3c_irqwake_eintallow = 0x0000fff0L; | 31 | unsigned long s3c_irqwake_eintallow = 0x0000fff0L; |
33 | unsigned long s3c_irqwake_eintmask = 0xffffffffL; | ||
34 | 32 | ||
35 | int | 33 | int s3c_irq_wake(unsigned int irqno, unsigned int state) |
36 | s3c_irq_wake(unsigned int irqno, unsigned int state) | ||
37 | { | 34 | { |
38 | unsigned long irqbit = 1 << (irqno - IRQ_EINT0); | 35 | unsigned long irqbit = 1 << (irqno - IRQ_EINT0); |
39 | 36 | ||
@@ -51,24 +48,6 @@ s3c_irq_wake(unsigned int irqno, unsigned int state) | |||
51 | return 0; | 48 | return 0; |
52 | } | 49 | } |
53 | 50 | ||
54 | int s3c_irqext_wake(unsigned int irqno, unsigned int state) | ||
55 | { | ||
56 | unsigned long bit = 1L << (irqno - EXTINT_OFF); | ||
57 | |||
58 | if (!(s3c_irqwake_eintallow & bit)) | ||
59 | return -ENOENT; | ||
60 | |||
61 | printk(KERN_INFO "wake %s for irq %d\n", | ||
62 | state ? "enabled" : "disabled", irqno); | ||
63 | |||
64 | if (!state) | ||
65 | s3c_irqwake_eintmask |= bit; | ||
66 | else | ||
67 | s3c_irqwake_eintmask &= ~bit; | ||
68 | |||
69 | return 0; | ||
70 | } | ||
71 | |||
72 | static struct sleep_save irq_save[] = { | 51 | static struct sleep_save irq_save[] = { |
73 | SAVE_ITEM(S3C2410_INTMSK), | 52 | SAVE_ITEM(S3C2410_INTMSK), |
74 | SAVE_ITEM(S3C2410_INTSUBMSK), | 53 | SAVE_ITEM(S3C2410_INTSUBMSK), |