[POWERPC] PPC: Use ARRAY_SIZE macro when appropriate
[powerpc.git] / arch / ppc / syslib / m8xx_setup.c
index d8d299b..01e48d8 100644 (file)
@@ -77,7 +77,7 @@ static struct mtd_partition mpc8xxads_partitions[] = {
        }
 };
 
-#define mpc8xxads_part_num (sizeof (mpc8xxads_partitions) / sizeof (mpc8xxads_partitions[0]))
+#define mpc8xxads_part_num ARRAY_SIZE(mpc8xxads_partitions)
 
 #endif