[MTD] [NAND] excite_nandflash: simplify code using ARRAY_SIZE() macro.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
Robert P. J. Day 2008-05-25 07:35:17 -04:00 committed by David Woodhouse
parent 437d0d299f
commit ff0de61c36
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ static int __init excite_nand_probe(struct device *dev)
if (likely(!scan_res)) {
DEBUG(MTD_DEBUG_LEVEL2, "%s: register partitions\n", module_id);
add_mtd_partitions(&drvdata->board_mtd, partition_info,
sizeof partition_info / sizeof partition_info[0]);
ARRAY_SIZE(partition_info));
} else {
iounmap(drvdata->regs);
kfree(drvdata);