linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / mtd / maps / h720x-flash.c
index 6dde318..3190948 100644 (file)
@@ -8,6 +8,7 @@
  *     2003 Thomas Gleixner <tglx@linutronix.de>
  */
 
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
@@ -58,7 +59,7 @@ static struct mtd_partition h720x_partitions[] = {
         }
 };
 
-#define NUM_PARTITIONS ARRAY_SIZE(h720x_partitions)
+#define NUM_PARTITIONS  (sizeof(h720x_partitions)/sizeof(h720x_partitions[0]))
 
 static int                   nr_mtd_parts;
 static struct mtd_partition *mtd_parts;