diff options
author | eric miao <eric.miao@marvell.com> | 2008-03-04 01:19:58 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-19 06:29:04 -0400 |
commit | b9e25aced33eeb7279ccbaef198f28370cfb4e93 (patch) | |
tree | 149cac52a08fd81dbfbf611f96332f2e5341c58a /arch/arm/mach-pxa/irq.c | |
parent | f6fb7af4768bc1ddc2349f6eaefedd746c8e4913 (diff) |
[ARM] pxa: merge assignment of set_wake into pxa_init_{irq,gpio}()
To further clean up the GPIO and IRQ structure:
1. pxa_init_irq_gpio() and pxa_init_gpio() combines into a single
function pxa_init_gpio()
2. assignment of set_wake merged into pxa_init_{irq,gpio}() as
an argument
Signed-off-by: eric miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/irq.c')
-rw-r--r-- | arch/arm/mach-pxa/irq.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c index cccc3ed3c679..fbff557bb225 100644 --- a/arch/arm/mach-pxa/irq.c +++ b/arch/arm/mach-pxa/irq.c | |||
@@ -51,7 +51,7 @@ static struct irq_chip pxa_internal_irq_chip = { | |||
51 | .unmask = pxa_unmask_irq, | 51 | .unmask = pxa_unmask_irq, |
52 | }; | 52 | }; |
53 | 53 | ||
54 | void __init pxa_init_irq(int irq_nr) | 54 | void __init pxa_init_irq(int irq_nr, set_wake_t fn) |
55 | { | 55 | { |
56 | int irq; | 56 | int irq; |
57 | 57 | ||
@@ -70,12 +70,8 @@ void __init pxa_init_irq(int irq_nr) | |||
70 | set_irq_handler(irq, handle_level_irq); | 70 | set_irq_handler(irq, handle_level_irq); |
71 | set_irq_flags(irq, IRQF_VALID); | 71 | set_irq_flags(irq, IRQF_VALID); |
72 | } | 72 | } |
73 | } | ||
74 | 73 | ||
75 | void __init pxa_init_irq_set_wake(int (*set_wake)(unsigned int, unsigned int)) | 74 | pxa_internal_irq_chip.set_wake = fn; |
76 | { | ||
77 | pxa_internal_irq_chip.set_wake = set_wake; | ||
78 | pxa_init_gpio_set_wake(set_wake); | ||
79 | } | 75 | } |
80 | 76 | ||
81 | #ifdef CONFIG_PM | 77 | #ifdef CONFIG_PM |