diff options
Diffstat (limited to 'arch/arm/mach-s3c24xx/irq-pm.c')
-rw-r--r-- | arch/arm/mach-s3c24xx/irq-pm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-s3c24xx/irq-pm.c b/arch/arm/mach-s3c24xx/irq-pm.c index d48126d9fbaf..640ec916f4c7 100644 --- a/arch/arm/mach-s3c24xx/irq-pm.c +++ b/arch/arm/mach-s3c24xx/irq-pm.c | |||
@@ -30,18 +30,18 @@ | |||
30 | * set bit to 1 in allow bitfield to enable the wakeup settings on it | 30 | * set bit to 1 in allow bitfield to enable the wakeup settings on it |
31 | */ | 31 | */ |
32 | 32 | ||
33 | unsigned long s3c_irqwake_intallow = 1L << (IRQ_RTC - IRQ_EINT0) | 0xfL; | 33 | unsigned long s3c_irqwake_intallow = 1L << 30 | 0xfL; |
34 | unsigned long s3c_irqwake_eintallow = 0x0000fff0L; | 34 | unsigned long s3c_irqwake_eintallow = 0x0000fff0L; |
35 | 35 | ||
36 | int s3c_irq_wake(struct irq_data *data, unsigned int state) | 36 | int s3c_irq_wake(struct irq_data *data, unsigned int state) |
37 | { | 37 | { |
38 | unsigned long irqbit = 1 << (data->irq - IRQ_EINT0); | 38 | unsigned long irqbit = 1 << data->hwirq; |
39 | 39 | ||
40 | if (!(s3c_irqwake_intallow & irqbit)) | 40 | if (!(s3c_irqwake_intallow & irqbit)) |
41 | return -ENOENT; | 41 | return -ENOENT; |
42 | 42 | ||
43 | printk(KERN_INFO "wake %s for irq %d\n", | 43 | pr_info("wake %s for hwirq %lu\n", |
44 | state ? "enabled" : "disabled", data->irq); | 44 | state ? "enabled" : "disabled", data->hwirq); |
45 | 45 | ||
46 | if (!state) | 46 | if (!state) |
47 | s3c_irqwake_intmask |= irqbit; | 47 | s3c_irqwake_intmask |= irqbit; |