diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-10 01:44:30 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 10:51:24 -0800 |
commit | 81d79bec348ab06cba9ae9fc03eb015b6b83703a (patch) | |
tree | 2a2d17b93cbbf18f66726037621838eb0897a166 /arch/v850/kernel/rte_mb_a_pci.c | |
parent | 6e6d74cfac782a3a4cb5111bd9c25cd95d6b7c6c (diff) | |
download | kernel_samsung_aries-81d79bec348ab06cba9ae9fc03eb015b6b83703a.zip kernel_samsung_aries-81d79bec348ab06cba9ae9fc03eb015b6b83703a.tar.gz kernel_samsung_aries-81d79bec348ab06cba9ae9fc03eb015b6b83703a.tar.bz2 |
[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_mb_a_pci.c')
-rw-r--r-- | arch/v850/kernel/rte_mb_a_pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/v850/kernel/rte_mb_a_pci.c b/arch/v850/kernel/rte_mb_a_pci.c index 35213fa..35a4bd5 100644 --- a/arch/v850/kernel/rte_mb_a_pci.c +++ b/arch/v850/kernel/rte_mb_a_pci.c @@ -70,8 +70,7 @@ static struct mb_pci_dev_irq mb_pci_dev_irqs[] = { /* PCI slot 2 */ { 9, IRQ_MB_A_PCI2(0), 1 } }; -#define NUM_MB_PCI_DEV_IRQS \ - (sizeof mb_pci_dev_irqs / sizeof mb_pci_dev_irqs[0]) +#define NUM_MB_PCI_DEV_IRQS ARRAY_SIZE(mb_pci_dev_irqs) /* PCI configuration primitives. */ |