提交 2d6bfc26 编写于 作者: P Peter Huewe 提交者: David Woodhouse

mtd: orion_nand: Fix build failure caused by typo

Commit e9903060 ("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: NPeter Huewe <peterhuewe@gmx.de>
Reviewed-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
上级 76037579
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册