aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mmp/irq-pxa168.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mmp/irq-pxa168.c')
-rw-r--r--arch/arm/mach-mmp/irq-pxa168.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/mach-mmp/irq-pxa168.c b/arch/arm/mach-mmp/irq-pxa168.c
index 52ff2f065eba..f86b450cb93c 100644
--- a/arch/arm/mach-mmp/irq-pxa168.c
+++ b/arch/arm/mach-mmp/irq-pxa168.c
@@ -25,21 +25,21 @@
25#define PRIORITY_DEFAULT 0x1 25#define PRIORITY_DEFAULT 0x1
26#define PRIORITY_NONE 0x0 /* means IRQ disabled */ 26#define PRIORITY_NONE 0x0 /* means IRQ disabled */
27 27
28static void icu_mask_irq(unsigned int irq) 28static void icu_mask_irq(struct irq_data *d)
29{ 29{
30 __raw_writel(PRIORITY_NONE, ICU_INT_CONF(irq)); 30 __raw_writel(PRIORITY_NONE, ICU_INT_CONF(d->irq));
31} 31}
32 32
33static void icu_unmask_irq(unsigned int irq) 33static void icu_unmask_irq(struct irq_data *d)
34{ 34{
35 __raw_writel(IRQ_ROUTE_TO_AP | PRIORITY_DEFAULT, ICU_INT_CONF(irq)); 35 __raw_writel(IRQ_ROUTE_TO_AP | PRIORITY_DEFAULT, ICU_INT_CONF(d->irq));
36} 36}
37 37
38static struct irq_chip icu_irq_chip = { 38static struct irq_chip icu_irq_chip = {
39 .name = "icu_irq", 39 .name = "icu_irq",
40 .ack = icu_mask_irq, 40 .irq_ack = icu_mask_irq,
41 .mask = icu_mask_irq, 41 .irq_mask = icu_mask_irq,
42 .unmask = icu_unmask_irq, 42 .irq_unmask = icu_unmask_irq,
43}; 43};
44 44
45void __init icu_init_irq(void) 45void __init icu_init_irq(void)
@@ -47,7 +47,7 @@ void __init icu_init_irq(void)
47 int irq; 47 int irq;
48 48
49 for (irq = 0; irq < 64; irq++) { 49 for (irq = 0; irq < 64; irq++) {
50 icu_mask_irq(irq); 50 icu_mask_irq(irq_get_irq_data(irq));
51 set_irq_chip(irq, &icu_irq_chip); 51 set_irq_chip(irq, &icu_irq_chip);
52 set_irq_handler(irq, handle_level_irq); 52 set_irq_handler(irq, handle_level_irq);
53 set_irq_flags(irq, IRQF_VALID); 53 set_irq_flags(irq, IRQF_VALID);