aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-lh7a40x/irq-lh7a400.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-lh7a40x/irq-lh7a400.c')
-rw-r--r--arch/arm/mach-lh7a40x/irq-lh7a400.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/arm/mach-lh7a40x/irq-lh7a400.c b/arch/arm/mach-lh7a40x/irq-lh7a400.c
index 1ad3afcf6b3d..f2e7e655ca35 100644
--- a/arch/arm/mach-lh7a40x/irq-lh7a400.c
+++ b/arch/arm/mach-lh7a40x/irq-lh7a400.c
@@ -21,34 +21,34 @@
21 21
22 /* CPU IRQ handling */ 22 /* CPU IRQ handling */
23 23
24static void lh7a400_mask_irq (u32 irq) 24static void lh7a400_mask_irq(struct irq_data *d)
25{ 25{
26 INTC_INTENC = (1 << irq); 26 INTC_INTENC = (1 << d->irq);
27} 27}
28 28
29static void lh7a400_unmask_irq (u32 irq) 29static void lh7a400_unmask_irq(struct irq_data *d)
30{ 30{
31 INTC_INTENS = (1 << irq); 31 INTC_INTENS = (1 << d->irq);
32} 32}
33 33
34static void lh7a400_ack_gpio_irq (u32 irq) 34static void lh7a400_ack_gpio_irq(struct irq_data *d)
35{ 35{
36 GPIO_GPIOFEOI = (1 << IRQ_TO_GPIO (irq)); 36 GPIO_GPIOFEOI = (1 << IRQ_TO_GPIO (d->irq));
37 INTC_INTENC = (1 << irq); 37 INTC_INTENC = (1 << d->irq);
38} 38}
39 39
40static struct irq_chip lh7a400_internal_chip = { 40static struct irq_chip lh7a400_internal_chip = {
41 .name = "MPU", 41 .name = "MPU",
42 .ack = lh7a400_mask_irq, /* Level triggering -> mask is ack */ 42 .irq_ack = lh7a400_mask_irq, /* Level triggering -> mask is ack */
43 .mask = lh7a400_mask_irq, 43 .irq_mask = lh7a400_mask_irq,
44 .unmask = lh7a400_unmask_irq, 44 .irq_unmask = lh7a400_unmask_irq,
45}; 45};
46 46
47static struct irq_chip lh7a400_gpio_chip = { 47static struct irq_chip lh7a400_gpio_chip = {
48 .name = "GPIO", 48 .name = "GPIO",
49 .ack = lh7a400_ack_gpio_irq, 49 .irq_ack = lh7a400_ack_gpio_irq,
50 .mask = lh7a400_mask_irq, 50 .irq_mask = lh7a400_mask_irq,
51 .unmask = lh7a400_unmask_irq, 51 .irq_unmask = lh7a400_unmask_irq,
52}; 52};
53 53
54 54