diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-08-23 02:50:36 (GMT) |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-30 20:52:44 (GMT) |
commit | ff52c67a1048fef9b381b98e17fcaca01b076190 (patch) | |
tree | 0c049fc9b4995759365694b368dc0f46a44b5833 /drivers | |
parent | 13134f48c8a7a9daaef74118d19f2d2ef29cd33a (diff) | |
download | linux-fsl-qoriq-ff52c67a1048fef9b381b98e17fcaca01b076190.tar.xz |
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')
-rw-r--r-- | drivers/mtd/nand/atmel_nand.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 8b2eb3e..060feea 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; } |