[PATCH] drivers/mtd: Use ARRAY_SIZE macro
[deliverable/linux.git] / drivers / mtd / maps / scx200_docflash.c
index 2c91dff8bb60c881e015d9e8e6d53b6bba3c669c..28b8a571a91a4ff60f133b5de4ed127684d5d78c 100644 (file)
@@ -70,7 +70,7 @@ static struct mtd_partition partition_info[] = {
                .size   = 0x80000
        },
 };
-#define NUM_PARTITIONS (sizeof(partition_info)/sizeof(partition_info[0]))
+#define NUM_PARTITIONS ARRAY_SIZE(partition_info)
 #endif
 
 
This page took 0.027842 seconds and 5 git commands to generate.