mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 05:24:12 +08:00
[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:
parent
437d0d299f
commit
ff0de61c36
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user