Commit 1f45f562 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

drivers/char: use nr_irqs

convert them to nr_irqs.
Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 0799e432
...@@ -219,7 +219,7 @@ static void hpet_timer_set_irq(struct hpet_dev *devp) ...@@ -219,7 +219,7 @@ static void hpet_timer_set_irq(struct hpet_dev *devp)
for (irq = find_first_bit(&v, HPET_MAX_IRQ); irq < HPET_MAX_IRQ; for (irq = find_first_bit(&v, HPET_MAX_IRQ); irq < HPET_MAX_IRQ;
irq = find_next_bit(&v, HPET_MAX_IRQ, 1 + irq)) { irq = find_next_bit(&v, HPET_MAX_IRQ, 1 + irq)) {
if (irq >= NR_IRQS) { if (irq >= nr_irqs) {
irq = HPET_MAX_IRQ; irq = HPET_MAX_IRQ;
break; break;
} }
......
...@@ -648,7 +648,7 @@ EXPORT_SYMBOL_GPL(add_input_randomness); ...@@ -648,7 +648,7 @@ EXPORT_SYMBOL_GPL(add_input_randomness);
void add_interrupt_randomness(int irq) void add_interrupt_randomness(int irq)
{ {
if (irq >= NR_IRQS || irq_timer_state[irq] == NULL) if (irq >= nr_irqs || irq_timer_state[irq] == NULL)
return; return;
DEBUG_ENT("irq event %d\n", irq); DEBUG_ENT("irq event %d\n", irq);
...@@ -912,7 +912,7 @@ void rand_initialize_irq(int irq) ...@@ -912,7 +912,7 @@ void rand_initialize_irq(int irq)
{ {
struct timer_rand_state *state; struct timer_rand_state *state;
if (irq >= NR_IRQS || irq_timer_state[irq]) if (irq >= nr_irqs || irq_timer_state[irq])
return; return;
/* /*
......
...@@ -641,7 +641,7 @@ static int __devinit giu_probe(struct platform_device *dev) ...@@ -641,7 +641,7 @@ static int __devinit giu_probe(struct platform_device *dev)
} }
irq = platform_get_irq(dev, 0); irq = platform_get_irq(dev, 0);
if (irq < 0 || irq >= NR_IRQS) if (irq < 0 || irq >= nr_irqs)
return -EBUSY; return -EBUSY;
return cascade_irq(irq, giu_get_irq); return cascade_irq(irq, giu_get_irq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment