diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-10 10:44:30 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 19:51:24 +0100 |
commit | 81d79bec348ab06cba9ae9fc03eb015b6b83703a (patch) | |
tree | 2a2d17b93cbbf18f66726037621838eb0897a166 /arch/v850/kernel/rte_me2_cb.c | |
parent | [PATCH] uml: x86_64 ptrace fixes (diff) | |
download | linux-81d79bec348ab06cba9ae9fc03eb015b6b83703a.tar.xz linux-81d79bec348ab06cba9ae9fc03eb015b6b83703a.zip |
[PATCH] V850: user ARRAY_SIZE macro when appropriate
Use ARRAY_SIZE macro already defined in linux/kernel.h
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Cc: Miles Bader <uclinux-v850@lsi.nec.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/v850/kernel/rte_me2_cb.c')
-rw-r--r-- | arch/v850/kernel/rte_me2_cb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/v850/kernel/rte_me2_cb.c b/arch/v850/kernel/rte_me2_cb.c index 3be355a029e2..46803d48dffe 100644 --- a/arch/v850/kernel/rte_me2_cb.c +++ b/arch/v850/kernel/rte_me2_cb.c @@ -170,8 +170,7 @@ static struct cb_pic_irq_init cb_pic_irq_inits[] = { { "CB_EXTTM2", IRQ_CB_EXTTM2, 1, 1, 6 }, { 0 } }; -#define NUM_CB_PIC_IRQ_INITS \ - ((sizeof cb_pic_irq_inits / sizeof cb_pic_irq_inits[0]) - 1) +#define NUM_CB_PIC_IRQ_INITS (ARRAY_SIZE(cb_pic_irq_inits) - 1) static struct hw_interrupt_type cb_pic_hw_itypes[NUM_CB_PIC_IRQ_INITS]; static unsigned char cb_pic_active_irqs = 0; |