summaryrefslogtreecommitdiff
path: root/arch/mips/vr41xx/nec-cmbvr4133/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/vr41xx/nec-cmbvr4133/setup.c')
-rw-r--r--arch/mips/vr41xx/nec-cmbvr4133/setup.c2
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);