From patchwork Mon Jul 18 10:55:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 105246 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3F662B6F00 for ; Mon, 18 Jul 2011 20:56:49 +1000 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QilUs-0001Gm-Br; Mon, 18 Jul 2011 10:56:22 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QilUs-0004za-0Y; Mon, 18 Jul 2011 10:56:22 +0000 Received: from mail.df.lth.se ([194.47.250.12]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QilUP-0004zH-Cm for linux-mtd@lists.infradead.org; Mon, 18 Jul 2011 10:55:57 +0000 Received: from localhost.localdomain (78-73-45-70-no184.tbcn.telia.com [78.73.45.70]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.df.lth.se (Postfix) with ESMTPSA id 1FBA665D96; Mon, 18 Jul 2011 12:55:50 +0200 (CEST) From: Linus Walleij To: linux-mtd@lists.infradead.org Subject: [PATCH] mtd/fsmc_nand: fix build error Date: Mon, 18 Jul 2011 12:55:39 +0200 Message-Id: <1310986539-458-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.7.6 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110718_065553_592011_47340459 X-CRM114-Status: GOOD ( 11.49 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [194.47.250.12 listed in list.dnswl.org] Cc: Dmitry Eremin-Solenikov , Linus Walleij , David Woodhouse X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Recent -next does not build due to malformed code, so just fix it. Cc: Dmitry Eremin-Solenikov Signed-off-by: Linus Walleij --- 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;