mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
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>
This commit is contained in:
parent
13134f48c8
commit
ff52c67a10
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue