X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fmtd%2Fmaps%2Fh720x-flash.c;h=6dde3182d64a6966d1b6247bc52dd5ee25c8c78b;hb=5042d99795d3d817bef2f4cc46e953bee9bf7398;hp=3190948211011b16211950cba7e7dab9c4b89251;hpb=3b621ee5df437d3f332a635ab6421aaa61a7dc2b;p=linux-2.6 diff --git a/drivers/mtd/maps/h720x-flash.c b/drivers/mtd/maps/h720x-flash.c index 3190948211..6dde3182d6 100644 --- a/drivers/mtd/maps/h720x-flash.c +++ b/drivers/mtd/maps/h720x-flash.c @@ -8,7 +8,6 @@ * 2003 Thomas Gleixner */ -#include #include #include #include @@ -59,7 +58,7 @@ static struct mtd_partition h720x_partitions[] = { } }; -#define NUM_PARTITIONS (sizeof(h720x_partitions)/sizeof(h720x_partitions[0])) +#define NUM_PARTITIONS ARRAY_SIZE(h720x_partitions) static int nr_mtd_parts; static struct mtd_partition *mtd_parts;