aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-davinci/irq.c')
-rw-r--r--arch/arm/mach-davinci/irq.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/arm/mach-davinci/irq.c b/arch/arm/mach-davinci/irq.c
index 784ddf3c5ad4..5e05c9b64e1f 100644
--- a/arch/arm/mach-davinci/irq.c
+++ b/arch/arm/mach-davinci/irq.c
@@ -53,14 +53,14 @@ static inline void davinci_irq_writel(unsigned long value, int offset)
53} 53}
54 54
55/* Disable interrupt */ 55/* Disable interrupt */
56static void davinci_mask_irq(unsigned int irq) 56static void davinci_mask_irq(struct irq_data *d)
57{ 57{
58 unsigned int mask; 58 unsigned int mask;
59 u32 l; 59 u32 l;
60 60
61 mask = 1 << IRQ_BIT(irq); 61 mask = 1 << IRQ_BIT(d->irq);
62 62
63 if (irq > 31) { 63 if (d->irq > 31) {
64 l = davinci_irq_readl(IRQ_ENT_REG1_OFFSET); 64 l = davinci_irq_readl(IRQ_ENT_REG1_OFFSET);
65 l &= ~mask; 65 l &= ~mask;
66 davinci_irq_writel(l, IRQ_ENT_REG1_OFFSET); 66 davinci_irq_writel(l, IRQ_ENT_REG1_OFFSET);
@@ -72,14 +72,14 @@ static void davinci_mask_irq(unsigned int irq)
72} 72}
73 73
74/* Enable interrupt */ 74/* Enable interrupt */
75static void davinci_unmask_irq(unsigned int irq) 75static void davinci_unmask_irq(struct irq_data *d)
76{ 76{
77 unsigned int mask; 77 unsigned int mask;
78 u32 l; 78 u32 l;
79 79
80 mask = 1 << IRQ_BIT(irq); 80 mask = 1 << IRQ_BIT(d->irq);
81 81
82 if (irq > 31) { 82 if (d->irq > 31) {
83 l = davinci_irq_readl(IRQ_ENT_REG1_OFFSET); 83 l = davinci_irq_readl(IRQ_ENT_REG1_OFFSET);
84 l |= mask; 84 l |= mask;
85 davinci_irq_writel(l, IRQ_ENT_REG1_OFFSET); 85 davinci_irq_writel(l, IRQ_ENT_REG1_OFFSET);
@@ -91,23 +91,23 @@ static void davinci_unmask_irq(unsigned int irq)
91} 91}
92 92
93/* EOI interrupt */ 93/* EOI interrupt */
94static void davinci_ack_irq(unsigned int irq) 94static void davinci_ack_irq(struct irq_data *d)
95{ 95{
96 unsigned int mask; 96 unsigned int mask;
97 97
98 mask = 1 << IRQ_BIT(irq); 98 mask = 1 << IRQ_BIT(d->irq);
99 99
100 if (irq > 31) 100 if (d->irq > 31)
101 davinci_irq_writel(mask, IRQ_REG1_OFFSET); 101 davinci_irq_writel(mask, IRQ_REG1_OFFSET);
102 else 102 else
103 davinci_irq_writel(mask, IRQ_REG0_OFFSET); 103 davinci_irq_writel(mask, IRQ_REG0_OFFSET);
104} 104}
105 105
106static struct irq_chip davinci_irq_chip_0 = { 106static struct irq_chip davinci_irq_chip_0 = {
107 .name = "AINTC", 107 .name = "AINTC",
108 .ack = davinci_ack_irq, 108 .irq_ack = davinci_ack_irq,
109 .mask = davinci_mask_irq, 109 .irq_mask = davinci_mask_irq,
110 .unmask = davinci_unmask_irq, 110 .irq_unmask = davinci_unmask_irq,
111}; 111};
112 112
113/* ARM Interrupt Controller Initialization */ 113/* ARM Interrupt Controller Initialization */