aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/spurious.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq/spurious.c')
-rw-r--r--kernel/irq/spurious.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c
index e26ca1e90c08..b5d906002e1d 100644
--- a/kernel/irq/spurious.c
+++ b/kernel/irq/spurious.c
@@ -92,11 +92,12 @@ static int misrouted_irq(int irq)
92 int ok = 0; 92 int ok = 0;
93 93
94 for (i = 1; i < nr_irqs; i++) { 94 for (i = 1; i < nr_irqs; i++) {
95 struct irq_desc *desc = irq_desc + i; 95 struct irq_desc *desc;
96 96
97 if (i == irq) /* Already tried */ 97 if (i == irq) /* Already tried */
98 continue; 98 continue;
99 99
100 desc = irq_to_desc(i);
100 if (try_one_irq(i, desc)) 101 if (try_one_irq(i, desc))
101 ok = 1; 102 ok = 1;
102 } 103 }
@@ -108,7 +109,7 @@ static void poll_spurious_irqs(unsigned long dummy)
108{ 109{
109 int i; 110 int i;
110 for (i = 1; i < nr_irqs; i++) { 111 for (i = 1; i < nr_irqs; i++) {
111 struct irq_desc *desc = irq_desc + i; 112 struct irq_desc *desc = irq_to_desc(i);
112 unsigned int status; 113 unsigned int status;
113 114
114 /* Racy but it doesn't matter */ 115 /* Racy but it doesn't matter */