From ff52c67a1048fef9b381b98e17fcaca01b076190 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Fri, 23 Aug 2013 10:50:36 +0800 Subject: [PATCH] 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 Acked-by: Josh Wu Signed-off-by: Brian Norris Signed-off-by: David Woodhouse --- 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; } -- 2.7.4