aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/plat-spear/shirq.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/arm/plat-spear/shirq.c b/arch/arm/plat-spear/shirq.c
index 2172d6946aea..78189035e7f1 100644
--- a/arch/arm/plat-spear/shirq.c
+++ b/arch/arm/plat-spear/shirq.c
@@ -20,10 +20,10 @@
20struct spear_shirq *shirq; 20struct spear_shirq *shirq;
21static DEFINE_SPINLOCK(lock); 21static DEFINE_SPINLOCK(lock);
22 22
23static void shirq_irq_mask(unsigned irq) 23static void shirq_irq_mask(struct irq_data *d)
24{ 24{
25 struct spear_shirq *shirq = get_irq_chip_data(irq); 25 struct spear_shirq *shirq = irq_data_get_irq_chip_data(d);
26 u32 val, id = irq - shirq->dev_config[0].virq; 26 u32 val, id = d->irq - shirq->dev_config[0].virq;
27 unsigned long flags; 27 unsigned long flags;
28 28
29 if ((shirq->regs.enb_reg == -1) || shirq->dev_config[id].enb_mask == -1) 29 if ((shirq->regs.enb_reg == -1) || shirq->dev_config[id].enb_mask == -1)
@@ -39,10 +39,10 @@ static void shirq_irq_mask(unsigned irq)
39 spin_unlock_irqrestore(&lock, flags); 39 spin_unlock_irqrestore(&lock, flags);
40} 40}
41 41
42static void shirq_irq_unmask(unsigned irq) 42static void shirq_irq_unmask(struct irq_data *d)
43{ 43{
44 struct spear_shirq *shirq = get_irq_chip_data(irq); 44 struct spear_shirq *shirq = irq_data_get_irq_chip_data(d);
45 u32 val, id = irq - shirq->dev_config[0].virq; 45 u32 val, id = d->irq - shirq->dev_config[0].virq;
46 unsigned long flags; 46 unsigned long flags;
47 47
48 if ((shirq->regs.enb_reg == -1) || shirq->dev_config[id].enb_mask == -1) 48 if ((shirq->regs.enb_reg == -1) || shirq->dev_config[id].enb_mask == -1)
@@ -60,9 +60,9 @@ static void shirq_irq_unmask(unsigned irq)
60 60
61static struct irq_chip shirq_chip = { 61static struct irq_chip shirq_chip = {
62 .name = "spear_shirq", 62 .name = "spear_shirq",
63 .ack = shirq_irq_mask, 63 .irq_ack = shirq_irq_mask,
64 .mask = shirq_irq_mask, 64 .irq_mask = shirq_irq_mask,
65 .unmask = shirq_irq_unmask, 65 .irq_unmask = shirq_irq_unmask,
66}; 66};
67 67
68static void shirq_handler(unsigned irq, struct irq_desc *desc) 68static void shirq_handler(unsigned irq, struct irq_desc *desc)
@@ -70,7 +70,7 @@ static void shirq_handler(unsigned irq, struct irq_desc *desc)
70 u32 i, val, mask; 70 u32 i, val, mask;
71 struct spear_shirq *shirq = get_irq_data(irq); 71 struct spear_shirq *shirq = get_irq_data(irq);
72 72
73 desc->chip->ack(irq); 73 desc->irq_data.chip->irq_ack(&desc->irq_data);
74 while ((val = readl(shirq->regs.base + shirq->regs.status_reg) & 74 while ((val = readl(shirq->regs.base + shirq->regs.status_reg) &
75 shirq->regs.status_reg_mask)) { 75 shirq->regs.status_reg_mask)) {
76 for (i = 0; (i < shirq->dev_count) && val; i++) { 76 for (i = 0; (i < shirq->dev_count) && val; i++) {
@@ -92,7 +92,7 @@ static void shirq_handler(unsigned irq, struct irq_desc *desc)
92 writel(mask, shirq->regs.base + shirq->regs.clear_reg); 92 writel(mask, shirq->regs.base + shirq->regs.clear_reg);
93 } 93 }
94 } 94 }
95 desc->chip->unmask(irq); 95 desc->irq_data.chip->irq_unmask(&desc->irq_data);
96} 96}
97 97
98int spear_shirq_register(struct spear_shirq *shirq) 98int spear_shirq_register(struct spear_shirq *shirq)