diff options
-rw-r--r-- | drivers/mtd/nand/excite_nandflash.c | 2 |
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) | |||
209 | if (likely(!scan_res)) { | 209 | if (likely(!scan_res)) { |
210 | DEBUG(MTD_DEBUG_LEVEL2, "%s: register partitions\n", module_id); | 210 | DEBUG(MTD_DEBUG_LEVEL2, "%s: register partitions\n", module_id); |
211 | add_mtd_partitions(&drvdata->board_mtd, partition_info, | 211 | add_mtd_partitions(&drvdata->board_mtd, partition_info, |
212 | sizeof partition_info / sizeof partition_info[0]); | 212 | ARRAY_SIZE(partition_info)); |
213 | } else { | 213 | } else { |
214 | iounmap(drvdata->regs); | 214 | iounmap(drvdata->regs); |
215 | kfree(drvdata); | 215 | kfree(drvdata); |