]> err.no Git - linux-2.6/blobdiff - drivers/mtd/maps/scx200_docflash.c
Merge master.kernel.org:/home/rmk/linux-2.6-serial
[linux-2.6] / 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