aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcmring
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2010-11-29 04:26:37 -0500
committerLennert Buytenhek <buytenh@wantstofly.org>2011-01-13 11:18:23 -0500
commitcf1d4d509903ede1379912c5c0587eea02d19106 (patch)
tree5e44251432134590d130b9753965457843fd6ddb /arch/arm/mach-bcmring
parentda0f9403d41e6cb210459571afddfce3646181ca (diff)
ARM: bcmring: irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca> Acked-by: Scott Branden <sbranden@broadcom.com>
Diffstat (limited to 'arch/arm/mach-bcmring')
-rw-r--r--arch/arm/mach-bcmring/irq.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/arch/arm/mach-bcmring/irq.c b/arch/arm/mach-bcmring/irq.c
index e3152631eb37..84dcda0d1d9a 100644
--- a/arch/arm/mach-bcmring/irq.c
+++ b/arch/arm/mach-bcmring/irq.c
@@ -30,61 +30,61 @@
30#include <mach/csp/intcHw_reg.h> 30#include <mach/csp/intcHw_reg.h>
31#include <mach/csp/mm_io.h> 31#include <mach/csp/mm_io.h>
32 32
33static void bcmring_mask_irq0(unsigned int irq) 33static void bcmring_mask_irq0(struct irq_data *d)
34{ 34{
35 writel(1 << (irq - IRQ_INTC0_START), 35 writel(1 << (d->irq - IRQ_INTC0_START),
36 MM_IO_BASE_INTC0 + INTCHW_INTENCLEAR); 36 MM_IO_BASE_INTC0 + INTCHW_INTENCLEAR);
37} 37}
38 38
39static void bcmring_unmask_irq0(unsigned int irq) 39static void bcmring_unmask_irq0(struct irq_data *d)
40{ 40{
41 writel(1 << (irq - IRQ_INTC0_START), 41 writel(1 << (d->irq - IRQ_INTC0_START),
42 MM_IO_BASE_INTC0 + INTCHW_INTENABLE); 42 MM_IO_BASE_INTC0 + INTCHW_INTENABLE);
43} 43}
44 44
45static void bcmring_mask_irq1(unsigned int irq) 45static void bcmring_mask_irq1(struct irq_data *d)
46{ 46{
47 writel(1 << (irq - IRQ_INTC1_START), 47 writel(1 << (d->irq - IRQ_INTC1_START),
48 MM_IO_BASE_INTC1 + INTCHW_INTENCLEAR); 48 MM_IO_BASE_INTC1 + INTCHW_INTENCLEAR);
49} 49}
50 50
51static void bcmring_unmask_irq1(unsigned int irq) 51static void bcmring_unmask_irq1(struct irq_data *d)
52{ 52{
53 writel(1 << (irq - IRQ_INTC1_START), 53 writel(1 << (d->irq - IRQ_INTC1_START),
54 MM_IO_BASE_INTC1 + INTCHW_INTENABLE); 54 MM_IO_BASE_INTC1 + INTCHW_INTENABLE);
55} 55}
56 56
57static void bcmring_mask_irq2(unsigned int irq) 57static void bcmring_mask_irq2(struct irq_data *d)
58{ 58{
59 writel(1 << (irq - IRQ_SINTC_START), 59 writel(1 << (d->irq - IRQ_SINTC_START),
60 MM_IO_BASE_SINTC + INTCHW_INTENCLEAR); 60 MM_IO_BASE_SINTC + INTCHW_INTENCLEAR);
61} 61}
62 62
63static void bcmring_unmask_irq2(unsigned int irq) 63static void bcmring_unmask_irq2(struct irq_data *d)
64{ 64{
65 writel(1 << (irq - IRQ_SINTC_START), 65 writel(1 << (d->irq - IRQ_SINTC_START),
66 MM_IO_BASE_SINTC + INTCHW_INTENABLE); 66 MM_IO_BASE_SINTC + INTCHW_INTENABLE);
67} 67}
68 68
69static struct irq_chip bcmring_irq0_chip = { 69static struct irq_chip bcmring_irq0_chip = {
70 .name = "ARM-INTC0", 70 .name = "ARM-INTC0",
71 .ack = bcmring_mask_irq0, 71 .irq_ack = bcmring_mask_irq0,
72 .mask = bcmring_mask_irq0, /* mask a specific interrupt, blocking its delivery. */ 72 .irq_mask = bcmring_mask_irq0, /* mask a specific interrupt, blocking its delivery. */
73 .unmask = bcmring_unmask_irq0, /* unmaks an interrupt */ 73 .irq_unmask = bcmring_unmask_irq0, /* unmaks an interrupt */
74}; 74};
75 75
76static struct irq_chip bcmring_irq1_chip = { 76static struct irq_chip bcmring_irq1_chip = {
77 .name = "ARM-INTC1", 77 .name = "ARM-INTC1",
78 .ack = bcmring_mask_irq1, 78 .irq_ack = bcmring_mask_irq1,
79 .mask = bcmring_mask_irq1, 79 .irq_mask = bcmring_mask_irq1,
80 .unmask = bcmring_unmask_irq1, 80 .irq_unmask = bcmring_unmask_irq1,
81}; 81};
82 82
83static struct irq_chip bcmring_irq2_chip = { 83static struct irq_chip bcmring_irq2_chip = {
84 .name = "ARM-SINTC", 84 .name = "ARM-SINTC",
85 .ack = bcmring_mask_irq2, 85 .irq_ack = bcmring_mask_irq2,
86 .mask = bcmring_mask_irq2, 86 .irq_mask = bcmring_mask_irq2,
87 .unmask = bcmring_unmask_irq2, 87 .irq_unmask = bcmring_unmask_irq2,
88}; 88};
89 89
90static void vic_init(void __iomem *base, struct irq_chip *chip, 90static void vic_init(void __iomem *base, struct irq_chip *chip,