summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-08-23 04:50:36 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-08-30 22:52:44 +0200
commitff52c67a1048fef9b381b98e17fcaca01b076190 (patch)
tree0c049fc9b4995759365694b368dc0f46a44b5833 /drivers/mtd
parentmtd: bcm47xxsflash: writing support (diff)
downloadlinux-ff52c67a1048fef9b381b98e17fcaca01b076190.tar.xz
linux-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;
}