From: Peter Huewe Date: Thu, 7 Jan 2010 01:51:13 +0000 (+0100) Subject: mtd: orion_nand: Fix build failure caused by typo X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=2d6bfc261a02662ec7a3a78df3e05e453e8b168d;p=deliverable%2Flinux.git mtd: orion_nand: Fix build failure caused by typo Commit e99030609e27abff7e1a868cb56384c678b09984 ("mtd: orion_nand.c: add error handling and use resource_size()") introduced a build error -- it 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. Signed-off-by: Peter Huewe Reviewed-by: H Hartley Sweeten Acked-by: Uwe Kleine-König Signed-off-by: David Woodhouse Signed-off-by: Andrew Morton --- diff --git a/drivers/mtd/nand/orion_nand.c b/drivers/mtd/nand/orion_nand.c index 990346036d37..f16050c61c5c 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; }