X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmtd%2Fmaps%2Fts5500_flash.c;h=4b372bcb17f1c0b6dbd5ec3312aa59edbb97f7dd;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=a7422c200567d8afd583b201745b13db2c81a102;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/drivers/mtd/maps/ts5500_flash.c b/drivers/mtd/maps/ts5500_flash.c index a7422c200..4b372bcb1 100644 --- a/drivers/mtd/maps/ts5500_flash.c +++ b/drivers/mtd/maps/ts5500_flash.c @@ -64,7 +64,7 @@ static struct mtd_partition ts5500_partitions[] = { } }; -#define NUM_PARTITIONS ARRAY_SIZE(ts5500_partitions) +#define NUM_PARTITIONS (sizeof(ts5500_partitions)/sizeof(struct mtd_partition)) static struct mtd_info *mymtd;