aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@gmail.com>2013-06-02 22:02:59 -0400
committerHaojian Zhuang <haojian.zhuang@gmail.com>2013-08-24 05:44:45 -0400
commit0f102b6ccec15c057d4d82f9731e6b780c9f8132 (patch)
tree3a2495647fc0610bd925b996e628e30ea6569c46 /drivers/irqchip
parent0f374561b50df8f29e3427717b35dd57c7ac4ca4 (diff)
ARM: mmp: avoid to include head file in mach-mmp
pxa910_set_wake() & mmp2_set_wake() are both declared in head files of arch/arm/mach-mmp/include/mach directory. If we include these head files in irq-mmp driver, it blocks the multiplatform build. So adjust the code. Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-mmp.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/irqchip/irq-mmp.c b/drivers/irqchip/irq-mmp.c
index 84d51ff836ee..1f8143278d4b 100644
--- a/drivers/irqchip/irq-mmp.c
+++ b/drivers/irqchip/irq-mmp.c
@@ -26,13 +26,6 @@
26 26
27#include <mach/irqs.h> 27#include <mach/irqs.h>
28 28
29#ifdef CONFIG_CPU_MMP2
30#include <mach/pm-mmp2.h>
31#endif
32#ifdef CONFIG_CPU_PXA910
33#include <mach/pm-pxa910.h>
34#endif
35
36#include "irqchip.h" 29#include "irqchip.h"
37 30
38#define MAX_ICU_NR 16 31#define MAX_ICU_NR 16
@@ -132,7 +125,7 @@ static void icu_unmask_irq(struct irq_data *d)
132 } 125 }
133} 126}
134 127
135static struct irq_chip icu_irq_chip = { 128struct irq_chip icu_irq_chip = {
136 .name = "icu_irq", 129 .name = "icu_irq",
137 .irq_mask = icu_mask_irq, 130 .irq_mask = icu_mask_irq,
138 .irq_mask_ack = icu_mask_ack_irq, 131 .irq_mask_ack = icu_mask_ack_irq,
@@ -251,9 +244,6 @@ void __init icu_init_irq(void)
251 } 244 }
252 irq_set_default_host(icu_data[0].domain); 245 irq_set_default_host(icu_data[0].domain);
253 set_handle_irq(mmp_handle_irq); 246 set_handle_irq(mmp_handle_irq);
254#ifdef CONFIG_CPU_PXA910
255 icu_irq_chip.irq_set_wake = pxa910_set_wake;
256#endif
257} 247}
258 248
259/* MMP2 (ARMv7) */ 249/* MMP2 (ARMv7) */
@@ -358,9 +348,6 @@ void __init mmp2_init_icu(void)
358 } 348 }
359 irq_set_default_host(icu_data[0].domain); 349 irq_set_default_host(icu_data[0].domain);
360 set_handle_irq(mmp2_handle_irq); 350 set_handle_irq(mmp2_handle_irq);
361#ifdef CONFIG_CPU_MMP2
362 icu_irq_chip.irq_set_wake = mmp2_set_wake;
363#endif
364} 351}
365 352
366#ifdef CONFIG_OF 353#ifdef CONFIG_OF