Skip to content

Commit

Permalink
[MTD] [NAND] excite_nandflash: simplify code using ARRAY_SIZE() macro.
Browse files Browse the repository at this point in the history
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Robert P. J. Day authored and David Woodhouse committed Jun 4, 2008
1 parent 437d0d2 commit ff0de61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/excite_nandflash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ff0de61

Please sign in to comment.