X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fmtd%2Fmaps%2Fnetsc520.c;fp=drivers%2Fmtd%2Fmaps%2Fnetsc520.c;h=33060a31572217b6feb25ba8d288323fbc492555;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=ed215470158bf808cff3e7d150715a8170c22bbd;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/mtd/maps/netsc520.c b/drivers/mtd/maps/netsc520.c index ed2154701..33060a315 100644 --- a/drivers/mtd/maps/netsc520.c +++ b/drivers/mtd/maps/netsc520.c @@ -76,7 +76,7 @@ static struct mtd_partition partition_info[]={ .size = 0x80000 }, }; -#define NUM_PARTITIONS ARRAY_SIZE(partition_info) +#define NUM_PARTITIONS (sizeof(partition_info)/sizeof(partition_info[0])) #define WINDOW_SIZE 0x00100000 #define WINDOW_ADDR 0x00200000 @@ -88,7 +88,7 @@ static struct map_info netsc520_map = { .phys = WINDOW_ADDR, }; -#define NUM_FLASH_BANKS ARRAY_SIZE(netsc520_map) +#define NUM_FLASH_BANKS (sizeof(netsc520_map)/sizeof(struct map_info)) static struct mtd_info *mymtd;