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/pxa3xx.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/pxa3xx.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa3xx.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index 8f8179b2fc38..eedcec0bf3f0 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c | |||
@@ -494,15 +494,9 @@ static int pxa3xx_set_wake(unsigned int irq, unsigned int on) | |||
494 | 494 | ||
495 | return 0; | 495 | return 0; |
496 | } | 496 | } |
497 | |||
498 | static void pxa3xx_init_irq_pm(void) | ||
499 | { | ||
500 | pxa_init_irq_set_wake(pxa3xx_set_wake); | ||
501 | } | ||
502 | |||
503 | #else | 497 | #else |
504 | static inline void pxa3xx_init_pm(void) {} | 498 | static inline void pxa3xx_init_pm(void) {} |
505 | static inline void pxa3xx_init_irq_pm(void) {} | 499 | #define pxa3xx_set_wake NULL |
506 | #endif | 500 | #endif |
507 | 501 | ||
508 | void __init pxa3xx_init_irq(void) | 502 | void __init pxa3xx_init_irq(void) |
@@ -513,9 +507,8 @@ void __init pxa3xx_init_irq(void) | |||
513 | value |= (1 << 6); | 507 | value |= (1 << 6); |
514 | __asm__ __volatile__("mcr p15, 0, %0, c15, c1, 0\n": :"r"(value)); | 508 | __asm__ __volatile__("mcr p15, 0, %0, c15, c1, 0\n": :"r"(value)); |
515 | 509 | ||
516 | pxa_init_irq(56); | 510 | pxa_init_irq(56, pxa3xx_set_wake); |
517 | pxa_init_irq_gpio(128); | 511 | pxa_init_gpio(128, NULL); |
518 | pxa3xx_init_irq_pm(); | ||
519 | } | 512 | } |
520 | 513 | ||
521 | /* | 514 | /* |