diff options
author | Alejandro Martinez Ruiz <alex@flawedcode.org> | 2007-10-22 23:36:44 +0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-01-29 13:14:54 +0300 |
commit | 2b22c034d04d3632a339d14d5803c8f94e412608 (patch) | |
tree | 332d25c97099978d28b644cc1fb405ec982dafdf /arch/mips/vr41xx/nec-cmbvr4133 | |
parent | 161548bf3529d53398adb3451cdc781cc324fc1d (diff) | |
download | linux-2b22c034d04d3632a339d14d5803c8f94e412608.tar.xz |
[MIPS] Converting most array size calculations to use ARRAY_SIZE().
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/vr41xx/nec-cmbvr4133')
-rw-r--r-- | arch/mips/vr41xx/nec-cmbvr4133/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/vr41xx/nec-cmbvr4133/setup.c b/arch/mips/vr41xx/nec-cmbvr4133/setup.c index 58e47686b499..f14bea8daf90 100644 --- a/arch/mips/vr41xx/nec-cmbvr4133/setup.c +++ b/arch/mips/vr41xx/nec-cmbvr4133/setup.c @@ -50,7 +50,7 @@ static struct mtd_partition cmbvr4133_mtd_parts[] = { } }; -#define number_partitions (sizeof(cmbvr4133_mtd_parts)/sizeof(struct mtd_partition)) +#define number_partitions ARRAY_SIZE(cmbvr4133_mtd_parts) #endif extern void i8259_init(void); |