diff options
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 | /* |