summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2010-01-07 02:51:13 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-02-10 19:14:39 +0100
commit2d6bfc261a02662ec7a3a78df3e05e453e8b168d (patch)
tree226e73d5967547267197f67aa80be736f82ce9a3 /drivers/mtd
parentmtd: Remove now-defunct ts7250 nand driver (diff)
downloadlinux-2d6bfc261a02662ec7a3a78df3e05e453e8b168d.tar.xz
linux-2d6bfc261a02662ec7a3a78df3e05e453e8b168d.zip
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 <peterhuewe@gmx.de> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/orion_nand.c2
1 files changed, 1 insertions, 1 deletions
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;
}