mtd: atmel_nand: fix error return code in atmel_nand_probe()
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Aug 30 16:59:05 EDT 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ff52c67a1048fef9b381b98e17fcaca01b076190
Commit: ff52c67a1048fef9b381b98e17fcaca01b076190
Parent: 13134f48c8a7a9daaef74118d19f2d2ef29cd33a
Author: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
AuthorDate: Fri Aug 23 10:50:36 2013 +0800
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Aug 30 21:52:44 2013 +0100
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 at trendmicro.com.cn>
Acked-by: Josh Wu <josh.wu at atmel.com>
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/atmel_nand.c | 1 +
1 file changed, 1 insertion(+)
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;
}
More information about the linux-mtd-cvs
mailing list