From patchwork Thu Jan 7 02:01:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_H=C3=BCwe?= X-Patchwork-Id: 42385 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F1819B6F01 for ; Thu, 7 Jan 2010 13:05:06 +1100 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NShi0-0004eK-Ec; Thu, 07 Jan 2010 02:02:44 +0000 Received: from [213.165.64.20] (helo=mail.gmx.net) by bombadil.infradead.org with smtp (Exim 4.69 #1 (Red Hat Linux)) id 1NShhu-0004bs-Cg for linux-mtd@lists.infradead.org; Thu, 07 Jan 2010 02:02:42 +0000 Received: (qmail invoked by alias); 07 Jan 2010 02:02:00 -0000 Received: from dslb-084-056-033-098.pools.arcor-ip.net (EHLO lamer.localnet) [84.56.33.98] by mail.gmx.net (mp071) with SMTP; 07 Jan 2010 03:02:00 +0100 X-Authenticated: #12255092 X-Provags-ID: V01U2FsdGVkX1+iPLE7V3OiRHgRJMaqZxfdy64vGQXy4D00DaU9/f EGeoz1gARtwJrP From: Peter =?iso-8859-1?q?H=FCwe?= To: David Woodhouse Subject: [PATCH] mtd/nand: Fix build failure caused by typo Date: Thu, 7 Jan 2010 03:01:58 +0100 User-Agent: KMail/1.12.3 (Linux/2.6.27-05415-g69a8594; KDE/4.3.3; x86_64; ; ) MIME-Version: 1.0 Message-Id: <201001070301.58260.PeterHuewe@gmx.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100106_210238_791698_69D77D7B X-CRM114-Status: GOOD ( 13.09 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.1 RDNS_NONE Delivered to trusted network by a host with no rDNS Cc: Nicolas Pitre , linux-kernel@vger.kernel.org, H Hartley Sweeten , linux-mtd@lists.infradead.org, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= , Andrew Morton 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: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Peter Huewe Date: Thu, 7 Jan 2010 02:51:13 +0100 This patch fixes a build failure[1] introduced by the patch mtd: orion_nand.c: add error handling and use resource_size() by H Hartley Sweeten [2] The patch assigns something to a undeclared variable 'err', whereas the rest of the code uses 'ret' for this task. This patch fixes this typo and thus removes the build failure. References: [1] http://kisskb.ellerman.id.au/kisskb/buildresult/1983354/ [2] http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=commitdiff;h=e99030609e27abff7e1a868cb56384c678b09984 Patch against linux-next of Do 7. Jan 02:58:41 CET 2010 Signed-off-by: Peter Huewe Reviewed-by: H Hartley Sweeten Acked-by: Uwe Kleine-König --- drivers/mtd/nand/orion_nand.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c index 9903460..f16050c 100644 --- a/drivers/mtd/nand/orion_nand.c +++ b/drivers/mtd/nand/orion_nand.c @@ -92,7 +92,7 @@ static int __init orion_nand_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!res) { - err = -ENODEV; + ret = -ENODEV; goto no_res; }