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
/
nand
/
au1550nd.c
diff --git
a/drivers/mtd/nand/au1550nd.c
b/drivers/mtd/nand/au1550nd.c
index
bde3550
..
201e136
100644
(file)
--- a/
drivers/mtd/nand/au1550nd.c
+++ b/
drivers/mtd/nand/au1550nd.c
@@
-55,6
+55,8
@@
static const struct mtd_partition partition_info[] = {
.size = MTDPART_SIZ_FULL
}
};
.size = MTDPART_SIZ_FULL
}
};
+#define NB_OF(x) (sizeof(x)/sizeof(x[0]))
+
/**
* au_read_byte - read one byte from the chip
/**
* au_read_byte - read one byte from the chip
@@
-460,7
+462,7
@@
int __init au1xxx_nand_init (void)
}
/* Register the partitions */
}
/* Register the partitions */
- add_mtd_partitions(au1550_mtd, partition_info,
ARRAY_SIZE
(partition_info));
+ add_mtd_partitions(au1550_mtd, partition_info,
NB_OF
(partition_info));
return 0;
return 0;