[PATCH] drivers/mtd: Use ARRAY_SIZE macro
[deliverable/linux.git] / drivers / mtd / maps / dbox2-flash.c
index 49d90542fc752859bd0f80ec083ae75044997c03..652813cd6c2d47f0dbb92113f912fd2cde2bf7ab 100644 (file)
@@ -57,7 +57,7 @@ static struct mtd_partition partition_info[]= {
        }
 };
 
-#define NUM_PARTITIONS (sizeof(partition_info) / sizeof(partition_info[0]))
+#define NUM_PARTITIONS ARRAY_SIZE(partition_info)
 
 #define WINDOW_ADDR 0x10000000
 #define WINDOW_SIZE 0x800000
This page took 0.038392 seconds and 5 git commands to generate.