linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / mtd / maps / nettel.c
index 54a3102..632eb2a 100644 (file)
@@ -128,7 +128,8 @@ static struct mtd_partition nettel_amd_partitions[] = {
        }
 };
 
-#define NUM_AMD_PARTITIONS ARRAY_SIZE(nettel_amd_partitions)
+#define NUM_AMD_PARTITIONS \
+       (sizeof(nettel_amd_partitions)/sizeof(nettel_amd_partitions[0]))
 
 /****************************************************************************/