projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
437d0d2
)
[MTD] [NAND] excite_nandflash: simplify code using ARRAY_SIZE() macro.
author
Robert P. J. Day
<rpjday@crashcourse.ca>
Sun, 25 May 2008 11:35:17 +0000
(07:35 -0400)
committer
David Woodhouse
<dwmw2@infradead.org>
Wed, 4 Jun 2008 16:28:03 +0000
(17:28 +0100)
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/excite_nandflash.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/excite_nandflash.c
b/drivers/mtd/nand/excite_nandflash.c
index
bed8729
..
ced14b5
100644
(file)
--- 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);