Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26fbf48b authored by Fabio Estevam's avatar Fabio Estevam Committed by Brian Norris
Browse files

mtd: mxc_nand: Propagate the error if platform_get_irq() fails



Check the return value from platform_get_irq() and propagate it in the case of
error.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent da22b893
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1501,6 +1501,8 @@ static int mxcnd_probe(struct platform_device *pdev)
	init_completion(&host->op_completion);

	host->irq = platform_get_irq(pdev, 0);
	if (host->irq < 0)
		return host->irq;

	/*
	 * Use host->devtype_data->irq_control() here instead of irq_control()