summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-08-23 10:50:36 +0800
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-08-30 21:52:44 +0100
commitff52c67a1048fef9b381b98e17fcaca01b076190 (patch)
tree0c049fc9b4995759365694b368dc0f46a44b5833 /drivers/mtd
parent13134f48c8a7a9daaef74118d19f2d2ef29cd33a (diff)
downloadlinux-stable-ff52c67a1048fef9b381b98e17fcaca01b076190.tar.gz
linux-stable-ff52c67a1048fef9b381b98e17fcaca01b076190.tar.bz2
linux-stable-ff52c67a1048fef9b381b98e17fcaca01b076190.zip
mtd: atmel_nand: fix error return code in atmel_nand_probe()
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/atmel_nand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
index 8b2eb3e5896b..060feeaf6b3e 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -2048,6 +2048,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(host->dev, "Cannot get HSMC irq!\n");
+ res = irq;
goto err_nand_ioremap;
}