linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / mtd / maps / scx200_docflash.c
index 28b8a57..2c91dff 100644 (file)
@@ -70,7 +70,7 @@ static struct mtd_partition partition_info[] = {
                .size   = 0x80000
        },
 };
-#define NUM_PARTITIONS ARRAY_SIZE(partition_info)
+#define NUM_PARTITIONS (sizeof(partition_info)/sizeof(partition_info[0]))
 #endif