X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmtd%2Fmaps%2Fts5500_flash.c;h=b47270e850bc78754ed876e2704f9355e0d87fec;hb=5042d99795d3d817bef2f4cc46e953bee9bf7398;hp=4b372bcb17f1c0b6dbd5ec3312aa59edbb97f7dd;hpb=ad8f76be48d817b48222411ae16a7dfe257bdb24;p=linux-2.6 diff --git a/drivers/mtd/maps/ts5500_flash.c b/drivers/mtd/maps/ts5500_flash.c index 4b372bcb17..b47270e850 100644 --- a/drivers/mtd/maps/ts5500_flash.c +++ b/drivers/mtd/maps/ts5500_flash.c @@ -26,7 +26,6 @@ * $Id: ts5500_flash.c,v 1.5 2005/11/07 11:14:28 gleixner Exp $ */ -#include #include #include #include @@ -64,7 +63,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;