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

Commit 28ecc0b6 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown
Browse files

ASoC: fsl_ssi: Fix platform_get_irq() error handling



We should check whether platform_get_irq() returns a negative number and
propagate the error in this case.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7667428f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1357,7 +1357,7 @@ static int fsl_ssi_probe(struct platform_device *pdev)
	}

	ssi_private->irq = platform_get_irq(pdev, 0);
	if (!ssi_private->irq) {
	if (ssi_private->irq < 0) {
		dev_err(&pdev->dev, "no irq for node %s\n", pdev->name);
		return ssi_private->irq;
	}