]> err.no Git - linux-2.6/blobdiff - drivers/mtd/maps/ts5500_flash.c
Merge branch 'for_paulus' of git://git.kernel.org/pub/scm/linux/kernel/git/galak...
[linux-2.6] / drivers / mtd / maps / ts5500_flash.c
index 4b372bcb17f1c0b6dbd5ec3312aa59edbb97f7dd..a7422c200567d8afd583b201745b13db2c81a102 100644 (file)
@@ -64,7 +64,7 @@ static struct mtd_partition ts5500_partitions[] = {
        }
 };
 
-#define NUM_PARTITIONS (sizeof(ts5500_partitions)/sizeof(struct mtd_partition))
+#define NUM_PARTITIONS ARRAY_SIZE(ts5500_partitions)
 
 static struct mtd_info *mymtd;