diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-04 21:42:11 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-06 11:53:19 -0500 |
commit | 25b8ac3ba46ee3d586a9c00c1771dca58314714e (patch) | |
tree | 21cd719307ab78f18ca6cb82a56310e27a89b021 /arch/mips/mips-boards/atlas | |
parent | 3e7f9b8254b82f7261b2c56ffaf864198c135ee5 (diff) |
[MIPS] Use ARRAY_SIZE macro when appropriate
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mips-boards/atlas')
-rw-r--r-- | arch/mips/mips-boards/atlas/atlas_int.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/mips-boards/atlas/atlas_int.c b/arch/mips/mips-boards/atlas/atlas_int.c index 6cfcd8fedcce..dfa0acbd7fc2 100644 --- a/arch/mips/mips-boards/atlas/atlas_int.c +++ b/arch/mips/mips-boards/atlas/atlas_int.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
33 | #include <linux/interrupt.h> | 33 | #include <linux/interrupt.h> |
34 | #include <linux/kernel_stat.h> | 34 | #include <linux/kernel_stat.h> |
35 | #include <linux/kernel.h> | ||
35 | 36 | ||
36 | #include <asm/gdb-stub.h> | 37 | #include <asm/gdb-stub.h> |
37 | #include <asm/io.h> | 38 | #include <asm/io.h> |
@@ -220,7 +221,7 @@ msc_irqmap_t __initdata msc_irqmap[] = { | |||
220 | {MSC01C_INT_TMR, MSC01_IRQ_EDGE, 0}, | 221 | {MSC01C_INT_TMR, MSC01_IRQ_EDGE, 0}, |
221 | {MSC01C_INT_PCI, MSC01_IRQ_LEVEL, 0}, | 222 | {MSC01C_INT_PCI, MSC01_IRQ_LEVEL, 0}, |
222 | }; | 223 | }; |
223 | int __initdata msc_nr_irqs = sizeof(msc_irqmap) / sizeof(*msc_irqmap); | 224 | int __initdata msc_nr_irqs = ARRAY_SIZE(msc_irqmap); |
224 | 225 | ||
225 | msc_irqmap_t __initdata msc_eicirqmap[] = { | 226 | msc_irqmap_t __initdata msc_eicirqmap[] = { |
226 | {MSC01E_INT_SW0, MSC01_IRQ_LEVEL, 0}, | 227 | {MSC01E_INT_SW0, MSC01_IRQ_LEVEL, 0}, |
@@ -231,7 +232,7 @@ msc_irqmap_t __initdata msc_eicirqmap[] = { | |||
231 | {MSC01E_INT_PERFCTR, MSC01_IRQ_LEVEL, 0}, | 232 | {MSC01E_INT_PERFCTR, MSC01_IRQ_LEVEL, 0}, |
232 | {MSC01E_INT_CPUCTR, MSC01_IRQ_LEVEL, 0} | 233 | {MSC01E_INT_CPUCTR, MSC01_IRQ_LEVEL, 0} |
233 | }; | 234 | }; |
234 | int __initdata msc_nr_eicirqs = sizeof(msc_eicirqmap) / sizeof(*msc_eicirqmap); | 235 | int __initdata msc_nr_eicirqs = ARRAY_SIZE(msc_eicirqmap); |
235 | 236 | ||
236 | void __init arch_init_irq(void) | 237 | void __init arch_init_irq(void) |
237 | { | 238 | { |