aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/random.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-19 23:49:49 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:52:05 -0400
commit1f45f5621df82033cb4964d03530ade2f9a25e7b (patch)
tree4f536a6df75a0d0885853c8baabbc7108d54bce3 /drivers/char/random.c
parent0799e432acfda879eaeef9622426bfa1434f3786 (diff)
drivers/char: use nr_irqs
convert them to nr_irqs. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/char/random.c')
-rw-r--r--drivers/char/random.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 6af435b89867..31456472829e 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -648,7 +648,7 @@ EXPORT_SYMBOL_GPL(add_input_randomness);
648 648
649void add_interrupt_randomness(int irq) 649void add_interrupt_randomness(int irq)
650{ 650{
651 if (irq >= NR_IRQS || irq_timer_state[irq] == NULL) 651 if (irq >= nr_irqs || irq_timer_state[irq] == NULL)
652 return; 652 return;
653 653
654 DEBUG_ENT("irq event %d\n", irq); 654 DEBUG_ENT("irq event %d\n", irq);
@@ -912,7 +912,7 @@ void rand_initialize_irq(int irq)
912{ 912{
913 struct timer_rand_state *state; 913 struct timer_rand_state *state;
914 914
915 if (irq >= NR_IRQS || irq_timer_state[irq]) 915 if (irq >= nr_irqs || irq_timer_state[irq])
916 return; 916 return;
917 917
918 /* 918 /*