git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
drivers
/
mtd
/
maps
/
nettel.c
diff --git
a/drivers/mtd/maps/nettel.c
b/drivers/mtd/maps/nettel.c
index
54a3102
..
632eb2a
100644
(file)
--- a/
drivers/mtd/maps/nettel.c
+++ b/
drivers/mtd/maps/nettel.c
@@
-128,7
+128,8
@@
static struct mtd_partition nettel_amd_partitions[] = {
}
};
-#define NUM_AMD_PARTITIONS ARRAY_SIZE(nettel_amd_partitions)
+#define NUM_AMD_PARTITIONS \
+ (sizeof(nettel_amd_partitions)/sizeof(nettel_amd_partitions[0]))
/****************************************************************************/