summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2008-05-25 13:35:17 +0200
committerDavid Woodhouse <dwmw2@infradead.org>2008-06-04 18:28:03 +0200
commitff0de61c3612410dc84a8de28761ef840d5d35ac (patch)
treef2ca3dd72a22ce361adff7088f5b0e3f604dd468
parent[MTD] [NAND] fix 2 "unused variable" warnings in cafe_nand.c (diff)
downloadlinux-ff0de61c3612410dc84a8de28761ef840d5d35ac.tar.xz
linux-ff0de61c3612410dc84a8de28761ef840d5d35ac.zip
[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>
-rw-r--r--drivers/mtd/nand/excite_nandflash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/excite_nandflash.c b/drivers/mtd/nand/excite_nandflash.c
index bed87290decc..ced14b5294d5 100644
--- a/drivers/mtd/nand/excite_nandflash.c
+++ b/drivers/mtd/nand/excite_nandflash.c
@@ -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);