[PATCH] mtd/fsmc_nand: fix build error

Linus Walleij linus.walleij at linaro.org
Mon Jul 18 06:55:39 EDT 2011


Recent -next does not build due to malformed code, so just fix it.

Cc: Dmitry Eremin-Solenikov <dbaryshkov at gmail.com>
Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
Dmitry can you check that I fixed this the right way?
---
 drivers/mtd/nand/fsmc_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index 8cc8065..e53b760 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -719,7 +719,7 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
 				partition_info_128KB_blk,
 			host->mtd.size <= 0x04000000 ?
 				ARRAY_SIZE(partition_info_16KB_blk) :
-				ARRAY_SIZE(partition_info_128KB_blk),
+				ARRAY_SIZE(partition_info_128KB_blk));
 	if (ret)
 		goto err_probe;
 
-- 
1.7.6




More information about the linux-mtd mailing list